	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnep_recv_extension
_bnep_recv_extension:                   ## @bnep_recv_extension
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	16(%rdi), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r13), %rcx
	movq	%rcx, (%rax)
	movq	%r15, 8(%rax)
	movq	_next@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_STAILQ_INSERT_TAIL
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_packet_adj
	movl	%r12d, %edi
	callq	_BNEP_TYPE_EXT
	testq	%rax, %rax
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r13), %rsi
	movslq	4(%rsi), %r15
	leaq	2(%r15), %rbx
	cmpq	%rcx, %rbx
	ja	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rsi), %r12d
	cmpl	$128, %r12d
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%r13), %edi
	addq	$8, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_bnep_recv_control
	cmpq	%r15, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	jmp	LBB0_9
LBB0_10:
	movl	$1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ignored spurious data in exthdr"

L_.str.1:                               ## @.str.1
	.asciz	"exthdr malloc() failed: %m"

	.comm	_next,4,2                       ## @next
	.no_dead_strip	_bnep_recv_extension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnep_recv_extension
_bnep_recv_extension:                   ; @bnep_recv_extension
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	add	x20, x0, #16
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x26, _next@GOTPAGE
Lloh5:
	ldr	x26, [x26, _next@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	ldr	x8, [x19, #8]
	stp	x8, x25, [x0]
	ldr	w2, [x26]
	mov	x0, x20
	bl	_STAILQ_INSERT_TAIL
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_packet_adj
	mov	x0, x23
	bl	_BNEP_TYPE_EXT
	cbz	x0, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	cmp	w9, #2
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldrsw	x25, [x8, #4]
	add	x24, x25, #2
	cmp	x24, x9
	b.hi	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x8]
	cmp	w23, #128
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #20]
	add	x1, x8, #8
	mov	x2, x25
	mov	w3, #1
	bl	_bnep_recv_control
	cmp	x0, x25
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_log_err
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_log_err
	b	LBB0_3
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ignored spurious data in exthdr"

l_.str.1:                               ; @.str.1
	.asciz	"exthdr malloc() failed: %m"

	.comm	_next,4,2                       ; @next
	.no_dead_strip	_bnep_recv_extension
.subsections_via_symbols
