	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btpad_set_inquiry_state
_btpad_set_inquiry_state:               ## @btpad_set_inquiry_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%edi, %edi
	sete	%al
	movq	_inquiry_off@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_inquiry_running@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_commands@GOTPCREL(%rip), %rax
	movq	_insert_position@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	_HCI_INQUIRY_LAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	movl	$1, %ecx
	popq	%rbp
	jmp	_btpad_queue_hci_inquiry        ## TAILCALL
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inquiry_off,4,2                ## @inquiry_off
	.comm	_inquiry_running,4,2            ## @inquiry_running
	.comm	_commands,8,3                   ## @commands
	.comm	_insert_position,8,3            ## @insert_position
	.comm	_HCI_INQUIRY_LAP,4,2            ## @HCI_INQUIRY_LAP
	.no_dead_strip	_btpad_set_inquiry_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btpad_set_inquiry_state
_btpad_set_inquiry_state:               ; @btpad_set_inquiry_state
	.cfi_startproc
; %bb.0:
	cmp	w0, #0
	cset	w8, eq
Lloh0:
	adrp	x9, _inquiry_off@GOTPAGE
Lloh1:
	ldr	x9, [x9, _inquiry_off@GOTPAGEOFF]
Lloh2:
	str	w8, [x9]
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _inquiry_running@GOTPAGE
Lloh4:
	ldr	x8, [x8, _inquiry_running@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _commands@GOTPAGE
Lloh7:
	ldr	x8, [x8, _commands@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _insert_position@GOTPAGE
Lloh10:
	ldr	x9, [x9, _insert_position@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _HCI_INQUIRY_LAP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HCI_INQUIRY_LAP@GOTPAGEOFF]
	add	x0, x8, x9, lsl #2
Lloh14:
	ldr	w1, [x10]
	mov	w2, #3
	mov	w3, #1
	b	_btpad_queue_hci_inquiry
LBB0_3:
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_inquiry_off,4,2                ; @inquiry_off
	.comm	_inquiry_running,4,2            ; @inquiry_running
	.comm	_commands,8,3                   ; @commands
	.comm	_insert_position,8,3            ; @insert_position
	.comm	_HCI_INQUIRY_LAP,4,2            ; @HCI_INQUIRY_LAP
	.no_dead_strip	_btpad_set_inquiry_state
.subsections_via_symbols
