	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btmrvl_check_evtpkt            ## -- Begin function btmrvl_check_evtpkt
	.p2align	4, 0x90
_btmrvl_check_evtpkt:                   ## @btmrvl_check_evtpkt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rax
	movq	(%rax), %rcx
	movq	_HCI_EV_CMD_COMPLETE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	_HCI_EVENT_HDR_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax), %edi
	callq	___le16_to_cpu
	movq	%rax, %rdi
	callq	_hci_opcode_ocf
	movq	_BT_CMD_MODULE_CFG_REQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movl	$0, 8(%rbx)
	movq	(%rbx), %rdi
	movl	$1, (%rdi)
	addq	$4, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_EV_CMD_COMPLETE,8,3        ## @HCI_EV_CMD_COMPLETE
	.comm	_HCI_EVENT_HDR_SIZE,8,3         ## @HCI_EVENT_HDR_SIZE
	.comm	_BT_CMD_MODULE_CFG_REQ,8,3      ## @BT_CMD_MODULE_CFG_REQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btmrvl_check_evtpkt            ; -- Begin function btmrvl_check_evtpkt
	.p2align	2
_btmrvl_check_evtpkt:                   ; @btmrvl_check_evtpkt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _HCI_EV_CMD_COMPLETE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HCI_EV_CMD_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x9, _HCI_EVENT_HDR_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HCI_EVENT_HDR_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x9, x8]
	bl	___le16_to_cpu
	bl	_hci_opcode_ocf
Lloh6:
	adrp	x8, _BT_CMD_MODULE_CFG_REQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT_CMD_MODULE_CFG_REQ@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.3:
	str	wzr, [x19, #8]
	ldr	x0, [x19]
	mov	w8, #1
	str	w8, [x0], #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up_interruptible
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_EV_CMD_COMPLETE,8,3        ; @HCI_EV_CMD_COMPLETE
	.comm	_HCI_EVENT_HDR_SIZE,8,3         ; @HCI_EVENT_HDR_SIZE
	.comm	_BT_CMD_MODULE_CFG_REQ,8,3      ; @BT_CMD_MODULE_CFG_REQ
.subsections_via_symbols
