	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bte_read_bd_addr_complete      ## -- Begin function bte_read_bd_addr_complete
	.p2align	4, 0x90
_bte_read_bd_addr_complete:             ## @bte_read_bd_addr_complete
	.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
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r8, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_LOG
	testq	%r14, %r14
	je	LBB0_9
## %bb.2:
	movq	_HCI_INFO_PARAM_OGF@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_12
## %bb.3:
	movq	_HCI_R_BD_ADDR_OCF@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_12
## %bb.4:
	movq	_HCI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_13
## %bb.5:
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movl	20(%rax), %ecx
	movq	(%rdx), %rsi
	movl	%ecx, (%rsi)
	movl	16(%rax), %ecx
	movl	%ecx, 4(%rsi)
	movl	12(%rax), %ecx
	movl	%ecx, 8(%rsi)
	movl	8(%rax), %ecx
	movl	%ecx, 12(%rsi)
	movl	4(%rax), %ecx
	movl	%ecx, 16(%rsi)
	movl	(%rax), %eax
	movl	%eax, 20(%rsi)
LBB0_7:
	movq	_i@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_LOG
	movq	_ERR_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	___bte_cmdfinish
	movl	(%rbx), %eax
	jmp	LBB0_11
LBB0_8:
	movq	_ERR_CONN@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ERR_VAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ERR_CONN@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_ERR_VAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___bte_cmdfinish                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_CONN,4,2                   ## @ERR_CONN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bte_read_bd_addr_complete(%02x,%p)\n"

	.comm	_ERR_VAL,4,2                    ## @ERR_VAL
	.comm	_HCI_INFO_PARAM_OGF,8,3         ## @HCI_INFO_PARAM_OGF
	.comm	_HCI_R_BD_ADDR_OCF,8,3          ## @HCI_R_BD_ADDR_OCF
	.comm	_HCI_SUCCESS,8,3                ## @HCI_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"bte_read_bd_addr_complete(%02x,%p,%d)\n"

	.comm	_i,4,2                          ## @i
	.comm	_ERR_OK,4,2                     ## @ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bte_read_bd_addr_complete      ; -- Begin function bte_read_bd_addr_complete
	.p2align	2
_bte_read_bd_addr_complete:             ; @bte_read_bd_addr_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	str	x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x4
	bl	_LOG
	cbz	x19, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _HCI_INFO_PARAM_OGF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCI_INFO_PARAM_OGF@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _HCI_R_BD_ADDR_OCF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HCI_R_BD_ADDR_OCF@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x23
	ccmp	x9, x22, #0, eq
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _ERR_CONN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_CONN@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh10:
	adrp	x8, _ERR_CONN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_CONN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_5:
Lloh13:
	adrp	x8, _ERR_VAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_VAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_6:
Lloh16:
	adrp	x8, _HCI_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HCI_SUCCESS@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.7:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x9, [x21]
	ldr	w10, [x9, #20]
	ldr	x11, [x8]
	str	w10, [x11]
	ldr	w10, [x9, #16]
	str	w10, [x11, #4]
	ldr	w10, [x9, #12]
	str	w10, [x11, #8]
	ldr	w10, [x9, #8]
	str	w10, [x11, #12]
	ldr	w10, [x9, #4]
	str	w10, [x11, #16]
	ldr	w9, [x9]
	str	w9, [x11, #20]
LBB0_9:
Lloh19:
	adrp	x9, _i@GOTPAGE
Lloh20:
	ldr	x9, [x9, _i@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_LOG
Lloh24:
	adrp	x20, _ERR_OK@GOTPAGE
Lloh25:
	ldr	x20, [x20, _ERR_OK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	___bte_cmdfinish
	ldr	w0, [x20]
LBB0_10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
Lloh26:
	adrp	x8, _ERR_VAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERR_VAL@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	mov	x0, x19
	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
	add	sp, sp, #80
	b	___bte_cmdfinish
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_CONN,4,2                   ; @ERR_CONN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bte_read_bd_addr_complete(%02x,%p)\n"

	.comm	_ERR_VAL,4,2                    ; @ERR_VAL
	.comm	_HCI_INFO_PARAM_OGF,8,3         ; @HCI_INFO_PARAM_OGF
	.comm	_HCI_R_BD_ADDR_OCF,8,3          ; @HCI_R_BD_ADDR_OCF
	.comm	_HCI_SUCCESS,8,3                ; @HCI_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"bte_read_bd_addr_complete(%02x,%p,%d)\n"

	.comm	_i,4,2                          ; @i
	.comm	_ERR_OK,4,2                     ; @ERR_OK
.subsections_via_symbols
