	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bte_hci_apply_patch_complete   ## -- Begin function bte_hci_apply_patch_complete
	.p2align	4, 0x90
_bte_hci_apply_patch_complete:          ## @bte_hci_apply_patch_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
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_ERR_OK@GOTPCREL(%rip), %r14
	movq	(%r14), %r12
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	xorl	%eax, %eax
	callq	_LOG
	cmpl	$128, %ebx
	jne	LBB0_8
## %bb.1:
	movq	_HCI_VENDOR_PATCH_START_OCF@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_5
## %bb.2:
	movq	_HCI_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_9
## %bb.3:
	movq	_HCI_VENDOR_PATCH_CONT_OCF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_bte_patch0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, %esi
	movl	$184, %ecx
	jmp	LBB0_4
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_LOG
LBB0_9:
	movq	_ERR_CONN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_10
LBB0_5:
	movq	_HCI_VENDOR_PATCH_CONT_OCF@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_10
## %bb.6:
	movq	_HCI_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_9
## %bb.7:
	movq	_bte_hci_patch_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hci_cmd_complete
	movq	_HCI_VENDOR_PATCH_END_OCF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_bte_patch1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, %esi
	movl	$92, %ecx
LBB0_4:
	callq	_hci_vendor_specific_command
	movq	%rax, %r12
LBB0_10:
	cmpq	(%r14), %r12
	je	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	___bte_cmdfinish
LBB0_12:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bte_hci_apply_patch_complete(%02x,%02x,%02x)\n"

	.comm	_HCI_VENDOR_PATCH_START_OCF,4,2 ## @HCI_VENDOR_PATCH_START_OCF
	.comm	_HCI_SUCCESS,4,2                ## @HCI_SUCCESS
	.comm	_HCI_VENDOR_PATCH_CONT_OCF,4,2  ## @HCI_VENDOR_PATCH_CONT_OCF
	.comm	_bte_patch0,4,2                 ## @bte_patch0
	.comm	_ERR_CONN,8,3                   ## @ERR_CONN
	.comm	_bte_hci_patch_complete,4,2     ## @bte_hci_patch_complete
	.comm	_HCI_VENDOR_PATCH_END_OCF,4,2   ## @HCI_VENDOR_PATCH_END_OCF
	.comm	_bte_patch1,4,2                 ## @bte_patch1
L_.str.1:                               ## @.str.1
	.asciz	"Unknown command complete event. OGF = 0x%x OCF = 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bte_hci_apply_patch_complete   ; -- Begin function bte_hci_apply_patch_complete
	.p2align	2
_bte_hci_apply_patch_complete:          ; @bte_hci_apply_patch_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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x0
Lloh0:
	adrp	x24, _ERR_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ERR_OK@GOTPAGEOFF]
	ldr	x20, [x24]
	str	x21, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	x2, x3
	bl	_LOG
	cmp	w23, #128
	b.ne	LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _HCI_VENDOR_PATCH_START_OCF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HCI_VENDOR_PATCH_START_OCF@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.2:
Lloh7:
	adrp	x8, _HCI_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCI_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _HCI_VENDOR_PATCH_CONT_OCF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HCI_VENDOR_PATCH_CONT_OCF@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _bte_patch0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bte_patch0@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w1, #128
	mov	w3, #184
	b	LBB0_9
LBB0_4:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	bl	_LOG
LBB0_5:
Lloh18:
	adrp	x8, _ERR_CONN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_CONN@GOTPAGEOFF]
Lloh20:
	ldr	x20, [x8]
	b	LBB0_10
LBB0_6:
Lloh21:
	adrp	x8, _HCI_VENDOR_PATCH_CONT_OCF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HCI_VENDOR_PATCH_CONT_OCF@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_10
; %bb.7:
Lloh24:
	adrp	x8, _HCI_SUCCESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HCI_SUCCESS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.8:
Lloh27:
	adrp	x8, _bte_hci_patch_complete@GOTPAGE
Lloh28:
	ldr	x8, [x8, _bte_hci_patch_complete@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_hci_cmd_complete
Lloh30:
	adrp	x8, _HCI_VENDOR_PATCH_END_OCF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HCI_VENDOR_PATCH_END_OCF@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _bte_patch1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _bte_patch1@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	w1, #128
	mov	w3, #92
LBB0_9:
	bl	_hci_vendor_specific_command
	mov	x20, x0
LBB0_10:
	ldr	x8, [x24]
	cmp	x20, x8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	___bte_cmdfinish
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bte_hci_apply_patch_complete(%02x,%02x,%02x)\n"

	.comm	_HCI_VENDOR_PATCH_START_OCF,4,2 ; @HCI_VENDOR_PATCH_START_OCF
	.comm	_HCI_SUCCESS,4,2                ; @HCI_SUCCESS
	.comm	_HCI_VENDOR_PATCH_CONT_OCF,4,2  ; @HCI_VENDOR_PATCH_CONT_OCF
	.comm	_bte_patch0,4,2                 ; @bte_patch0
	.comm	_ERR_CONN,8,3                   ; @ERR_CONN
	.comm	_bte_hci_patch_complete,4,2     ; @bte_hci_patch_complete
	.comm	_HCI_VENDOR_PATCH_END_OCF,4,2   ; @HCI_VENDOR_PATCH_END_OCF
	.comm	_bte_patch1,4,2                 ; @bte_patch1
l_.str.1:                               ; @.str.1
	.asciz	"Unknown command complete event. OGF = 0x%x OCF = 0x%x\n"

.subsections_via_symbols
