	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_read_page_scan_mode
_hci_read_page_scan_mode:               ## @hci_read_page_scan_mode
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movl	$8, -20(%rbp)
	movq	_NG_HCI_OGF_HC_BASEBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NG_HCI_OCF_READ_PAGE_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NG_HCI_OPCODE
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_hci_simple_request
	movq	_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movl	-16(%rbp), %edi
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	callq	_hci_status2str
	movl	-16(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movl	-12(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_OK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_HCI_OGF_HC_BASEBAND,4,2     ## @NG_HCI_OGF_HC_BASEBAND
	.comm	_NG_HCI_OCF_READ_PAGE_SCAN,4,2  ## @NG_HCI_OCF_READ_PAGE_SCAN
	.comm	_ERROR,8,3                      ## @ERROR
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Status: %s [%#02x]\n"

	.comm	_FAILED,4,2                     ## @FAILED
L_.str.1:                               ## @.str.1
	.asciz	"Page scan mode: %#02x\n"

	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_hci_read_page_scan_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_read_page_scan_mode
_hci_read_page_scan_mode:               ; @hci_read_page_scan_mode
	.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
	mov	x19, x0
	mov	w8, #8
	str	w8, [sp, #20]
Lloh0:
	adrp	x8, _NG_HCI_OGF_HC_BASEBAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_HCI_OGF_HC_BASEBAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _NG_HCI_OCF_READ_PAGE_SCAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_HCI_OCF_READ_PAGE_SCAN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_NG_HCI_OPCODE
	mov	x1, x0
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x19
	bl	_hci_simple_request
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.1:
	ldr	w0, [sp, #24]
Lloh9:
	adrp	x8, _stdout@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	cbz	w0, LBB0_3
; %bb.2:
	bl	_hci_status2str
	ldr	w8, [sp, #24]
	stp	x0, x8, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh14:
	adrp	x8, _FAILED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh18:
	adrp	x8, _OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_HCI_OGF_HC_BASEBAND,4,2     ; @NG_HCI_OGF_HC_BASEBAND
	.comm	_NG_HCI_OCF_READ_PAGE_SCAN,4,2  ; @NG_HCI_OCF_READ_PAGE_SCAN
	.comm	_ERROR,8,3                      ; @ERROR
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Status: %s [%#02x]\n"

	.comm	_FAILED,4,2                     ; @FAILED
l_.str.1:                               ; @.str.1
	.asciz	"Page scan mode: %#02x\n"

	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_hci_read_page_scan_mode
.subsections_via_symbols
