	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function le_set_scan_enable
_le_set_scan_enable:                    ## @le_set_scan_enable
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_USAGE@GOTPCREL(%rip), %rbx
	cmpl	$1, %esi
	jne	LBB0_8
## %bb.1:
	movq	%rdx, %r15
	movl	%edi, %r14d
	movq	(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movl	$1, %eax
LBB0_5:
	movl	$8, -28(%rbp)
	movl	%eax, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_NG_HCI_OGF_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NG_HCI_OCF_LE_SET_SCAN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NG_HCI_OPCODE
	leaq	-56(%rbp), %rdx
	leaq	-40(%rbp), %r8
	leaq	-28(%rbp), %r9
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	$16, %ecx
	callq	_hci_request
	cmpq	$0, -40(%rbp)
	movq	_ERROR@GOTPCREL(%rip), %rcx
	movq	%rcx, %rbx
	jne	LBB0_7
## %bb.6:
	movq	_OK@GOTPCREL(%rip), %rbx
LBB0_7:
	testl	%eax, %eax
	cmovneq	%rcx, %rbx
LBB0_8:
	movl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USAGE,4,2                      ## @USAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable"

L_.str.1:                               ## @.str.1
	.asciz	"disable"

	.comm	_NG_HCI_OGF_LE,4,2              ## @NG_HCI_OGF_LE
	.comm	_NG_HCI_OCF_LE_SET_SCAN_ENABLE,4,2 ## @NG_HCI_OCF_LE_SET_SCAN_ENABLE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_le_set_scan_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function le_set_scan_enable
_le_set_scan_enable:                    ; @le_set_scan_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #1
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldr	x0, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _USAGE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USAGE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	w8, #1
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	mov	w9, #8
	str	w9, [sp, #4]
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
Lloh6:
	adrp	x8, _NG_HCI_OGF_LE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NG_HCI_OGF_LE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _NG_HCI_OCF_LE_SET_SCAN_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NG_HCI_OCF_LE_SET_SCAN_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_NG_HCI_OPCODE
	mov	x1, x0
	add	x2, sp, #16
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x0, x19
	mov	w3, #16
	bl	_hci_request
	ldr	x8, [sp, #8]
	cmp	x8, #0
	ccmp	w0, #0, #0, eq
Lloh12:
	adrp	x8, _OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh14:
	adrp	x9, _ERROR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
	csel	x8, x9, x8, ne
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_USAGE,4,2                      ; @USAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable"

l_.str.1:                               ; @.str.1
	.asciz	"disable"

	.comm	_NG_HCI_OGF_LE,4,2              ; @NG_HCI_OGF_LE
	.comm	_NG_HCI_OCF_LE_SET_SCAN_ENABLE,4,2 ; @NG_HCI_OCF_LE_SET_SCAN_ENABLE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_le_set_scan_enable
.subsections_via_symbols
