	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_write_le_host_supported_command
_hci_write_le_host_supported_command:   ## @hci_write_le_host_supported_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movl	%edi, %r14d
	movl	$0, -28(%rbp)
	cmpl	$1, %esi
	je	LBB0_8
## %bb.1:
	cmpl	$2, %esi
	jne	LBB0_6
## %bb.2:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_sscanf
	movl	-20(%rbp), %esi
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	cmpl	$2, %esi
	jae	LBB0_4
## %bb.7:
	movl	%esi, -28(%rbp)
LBB0_8:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_sscanf
	movl	-20(%rbp), %esi
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.9:
	cmpl	$2, %esi
	jae	LBB0_10
## %bb.11:
	movl	%esi, -32(%rbp)
	movl	$4, -20(%rbp)
	movq	_NG_HCI_OGF_HC_BASEBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NG_HCI_OCF_WRITE_LE_HOST_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NG_HCI_OPCODE
	leaq	-32(%rbp), %rdx
	leaq	-24(%rbp), %r8
	leaq	-20(%rbp), %r9
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	$8, %ecx
	callq	_hci_request
	movq	_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.12:
	movl	-24(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_14
## %bb.13:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_hci_status2str
	movl	-24(%rbp), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movq	_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_printf
LBB0_6:
	movq	_USAGE@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"ARGC2: %d\n"

	.comm	_USAGE,4,2                      ## @USAGE
L_.str.2:                               ## @.str.2
	.asciz	"ARGC1: %d\n"

	.comm	_NG_HCI_OGF_HC_BASEBAND,4,2     ## @NG_HCI_OGF_HC_BASEBAND
	.comm	_NG_HCI_OCF_WRITE_LE_HOST_SUPPORTED,4,2 ## @NG_HCI_OCF_WRITE_LE_HOST_SUPPORTED
	.comm	_ERROR,8,3                      ## @ERROR
	.comm	_stdout,4,2                     ## @stdout
L_.str.3:                               ## @.str.3
	.asciz	"Status: %s [%#02x]\n"

	.comm	_FAILED,4,2                     ## @FAILED
	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_hci_write_le_host_supported_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_write_le_host_supported_command
_hci_write_le_host_supported_command:   ; @hci_write_le_host_supported_command
	.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	x20, x2
	mov	x19, x0
	str	wzr, [sp, #28]
	cmp	w1, #1
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #2
	b.ne	LBB0_8
; %bb.2:
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	ldr	w1, [sp, #12]
	cmp	w0, #1
	ccmp	w1, #2, #2, eq
	b.lo	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	str	w1, [sp, #28]
LBB0_5:
	ldr	x0, [x20]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	ldr	w1, [sp, #12]
	cmp	w0, #1
	ccmp	w1, #2, #2, eq
	b.lo	LBB0_11
; %bb.6:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_printf
LBB0_8:
Lloh8:
	adrp	x8, _USAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USAGE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
                                        ; 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
LBB0_11:
	str	w1, [sp, #24]
	mov	w8, #4
	str	w8, [sp, #12]
Lloh10:
	adrp	x8, _NG_HCI_OGF_HC_BASEBAND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NG_HCI_OGF_HC_BASEBAND@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _NG_HCI_OCF_WRITE_LE_HOST_SUPPORTED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NG_HCI_OCF_WRITE_LE_HOST_SUPPORTED@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_NG_HCI_OPCODE
	mov	x1, x0
	add	x2, sp, #24
	add	x4, sp, #16
	add	x5, sp, #12
	mov	x0, x19
	mov	w3, #8
	bl	_hci_request
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.12:
	ldr	w0, [sp, #16]
	cbz	w0, LBB0_14
; %bb.13:
Lloh19:
	adrp	x8, _stdout@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	bl	_hci_status2str
	mov	x2, x0
	ldr	w3, [sp, #16]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh24:
	adrp	x8, _FAILED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
	b	LBB0_9
LBB0_14:
Lloh26:
	adrp	x8, _OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"ARGC2: %d\n"

	.comm	_USAGE,4,2                      ; @USAGE
l_.str.2:                               ; @.str.2
	.asciz	"ARGC1: %d\n"

	.comm	_NG_HCI_OGF_HC_BASEBAND,4,2     ; @NG_HCI_OGF_HC_BASEBAND
	.comm	_NG_HCI_OCF_WRITE_LE_HOST_SUPPORTED,4,2 ; @NG_HCI_OCF_WRITE_LE_HOST_SUPPORTED
	.comm	_ERROR,8,3                      ; @ERROR
	.comm	_stdout,4,2                     ; @stdout
l_.str.3:                               ; @.str.3
	.asciz	"Status: %s [%#02x]\n"

	.comm	_FAILED,4,2                     ; @FAILED
	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_hci_write_le_host_supported_command
.subsections_via_symbols
