	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_get_conf_opt
_l2cap_get_conf_opt:                    ## @l2cap_get_conf_opt
	.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
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	_L2CAP_CONF_OPT_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	(%rbx), %r12
	addq	%rax, %r12
	movq	%r12, %rax
	addq	%rbx, %rax
	movq	%rax, (%rdi)
	movl	4(%rbx), %eax
	movl	%eax, (%rsi)
	movl	(%rbx), %eax
	movl	%eax, (%rdx)
	movl	(%rbx), %eax
	cmpl	$4, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	___le32_to_cpu
	movq	%rax, %rcx
	jmp	LBB0_7
LBB0_4:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	___le16_to_cpu
	movq	%rax, %rcx
	jmp	LBB0_7
LBB0_6:
	movq	8(%rbx), %rcx
LBB0_7:
	movq	%rcx, (%r14)
	movl	(%r15), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L2CAP_CONF_OPT_SIZE,4,2        ## @L2CAP_CONF_OPT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type 0x%2.2x len %d val 0x%lx"

	.no_dead_strip	_l2cap_get_conf_opt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_get_conf_opt
_l2cap_get_conf_opt:                    ; @l2cap_get_conf_opt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x1
Lloh0:
	adrp	x8, _L2CAP_CONF_OPT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L2CAP_CONF_OPT_SIZE@GOTPAGEOFF]
	ldr	x22, [x0]
Lloh2:
	ldrsw	x8, [x8]
	ldp	w9, w10, [x22]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x21, x9, x8
	add	x8, x22, x21
	str	x8, [x0]
	str	w10, [x1]
	ldr	w8, [x22]
	str	w8, [x2]
	ldr	w8, [x22]
	cmp	w8, #4
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	x3, [x8]
	b	LBB0_7
LBB0_4:
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	___le32_to_cpu
	mov	x3, x0
	b	LBB0_7
LBB0_5:
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	___le16_to_cpu
	mov	x3, x0
	b	LBB0_7
LBB0_6:
	ldr	x3, [x22, #8]
LBB0_7:
	str	x3, [x19]
	ldr	w1, [x20]
	ldr	w2, [x22]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_L2CAP_CONF_OPT_SIZE,4,2        ; @L2CAP_CONF_OPT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type 0x%2.2x len %d val 0x%lx"

	.no_dead_strip	_l2cap_get_conf_opt
.subsections_via_symbols
