	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bchannel_get_rxbuf             ## -- Begin function bchannel_get_rxbuf
	.p2align	4, 0x90
_bchannel_get_rxbuf:                    ## @bchannel_get_rxbuf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	callq	_skb_tailroom
	movl	%eax, %ebx
	cmpl	%r14d, %eax
	jge	LBB0_18
## %bb.2:
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_pr_warning
	movq	_FLG_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_recv_Bchannel
LBB0_4:
	movl	(%r15), %eax
	xorl	%edi, %edi
	cmpl	4(%r15), %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	4(%r15), %eax
	movl	%eax, (%r15)
LBB0_6:
	movl	8(%r15), %eax
	xorl	%edi, %edi
	cmpl	12(%r15), %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	12(%r15), %eax
	movl	%eax, 8(%r15)
LBB0_8:
	xorl	%edi, %edi
	cmpl	%r14d, (%r15)
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_10:
	movq	_FLG_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	8(%r15), %eax
	cmpl	%r14d, %eax
	jle	LBB0_14
## %bb.12:
	addl	%eax, %eax
	movl	(%r15), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_19:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %ebx
	jmp	LBB0_18
LBB0_13:
	movl	(%r15), %r14d
LBB0_14:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_mI_alloc_skb
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	%r14d, %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	16(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_warning
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"B%d no space for %d (only %d) bytes\n"

	.comm	_FLG_TRANSPARENT,4,2            ## @FLG_TRANSPARENT
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"B%d receive no memory for %d bytes\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bchannel_get_rxbuf             ; -- Begin function bchannel_get_rxbuf
	.p2align	2
_bchannel_get_rxbuf:                    ; @bchannel_get_rxbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_skb_tailroom
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w19
	b.ge	LBB0_11
; %bb.2:
	ldr	w1, [x20, #16]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_warning
Lloh2:
	adrp	x8, _FLG_TRANSPARENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLG_TRANSPARENT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x20, #32
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_recv_Bchannel
LBB0_4:
	ldp	w8, w9, [x20]
	cmp	w8, w9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x20, #4]
	str	w8, [x20]
LBB0_6:
	ldp	w8, w9, [x20, #8]
	cmp	w8, w9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x20, #12]
	str	w8, [x20, #8]
LBB0_8:
	ldr	w8, [x20]
	cmp	w8, w19
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_12
LBB0_9:
Lloh5:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
Lloh7:
	adrp	x8, _FLG_TRANSPARENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FLG_TRANSPARENT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x20, #32
	bl	_test_bit
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w8, [x20, #8]
	cmp	w8, w19
	b.le	LBB0_16
; %bb.14:
	lsl	w8, w8, #1
	ldr	w9, [x20]
	cmp	w8, w9
	csel	w19, w8, w9, lt
	b	LBB0_16
LBB0_15:
	ldr	w19, [x20]
LBB0_16:
Lloh10:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mI_alloc_skb
	str	x0, [x20, #24]
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	b	LBB0_11
LBB0_18:
	ldr	w1, [x20, #16]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_pr_warning
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"B%d no space for %d (only %d) bytes\n"

	.comm	_FLG_TRANSPARENT,4,2            ; @FLG_TRANSPARENT
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"B%d receive no memory for %d bytes\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
