	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwmbt_hci_command
_iwmbt_hci_command:                     ## @iwmbt_hci_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_LIBUSB_REQUEST_TYPE_CLASS@GOTPCREL(%rip), %rax
	movq	_LIBUSB_RECIPIENT_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	%rsi, %rdi
	callq	_IWMBT_HCI_CMD_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	pushq	%r13
	pushq	%rax
	callq	_libusb_control_transfer
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_IWMBT_INTERRUPT_ENDPOINT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%r13d, %r9d
	callq	_libusb_interrupt_transfer
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %r14
LBB0_4:
	movl	%ebx, %edi
	callq	_libusb_strerror
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_iwmbt_err
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB_REQUEST_TYPE_CLASS,4,2  ## @LIBUSB_REQUEST_TYPE_CLASS
	.comm	_LIBUSB_RECIPIENT_DEVICE,4,2    ## @LIBUSB_RECIPIENT_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"libusb_control_transfer() failed: err=%s"

	.comm	_IWMBT_INTERRUPT_ENDPOINT_ADDR,4,2 ## @IWMBT_INTERRUPT_ENDPOINT_ADDR
L_.str.1:                               ## @.str.1
	.asciz	"libusb_interrupt_transfer() failed: err=%s"

	.no_dead_strip	_iwmbt_hci_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwmbt_hci_command
_iwmbt_hci_command:                     ; @iwmbt_hci_command
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _LIBUSB_REQUEST_TYPE_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBUSB_REQUEST_TYPE_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LIBUSB_RECIPIENT_DEVICE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LIBUSB_RECIPIENT_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w25, w9, w8
	mov	x0, x1
	bl	_IWMBT_HCI_CMD_SIZE
	mov	x6, x0
	mov	x0, x24
	mov	x1, x25
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, x21
	mov	x7, x19
	bl	_libusb_control_transfer
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _IWMBT_INTERRUPT_ENDPOINT_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWMBT_INTERRUPT_ENDPOINT_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x20
	mov	x5, x19
	bl	_libusb_interrupt_transfer
	mov	x21, x0
	tbz	w0, #31, LBB0_5
; %bb.2:
Lloh9:
	adrp	x19, l_.str.1@PAGE
Lloh10:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x21, x0
Lloh11:
	adrp	x19, l_.str@PAGE
Lloh12:
	add	x19, x19, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x21
	bl	_libusb_strerror
	mov	x1, x0
	mov	x0, x19
	bl	_iwmbt_err
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB_REQUEST_TYPE_CLASS,4,2  ; @LIBUSB_REQUEST_TYPE_CLASS
	.comm	_LIBUSB_RECIPIENT_DEVICE,4,2    ; @LIBUSB_RECIPIENT_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"libusb_control_transfer() failed: err=%s"

	.comm	_IWMBT_INTERRUPT_ENDPOINT_ADDR,4,2 ; @IWMBT_INTERRUPT_ENDPOINT_ADDR
l_.str.1:                               ; @.str.1
	.asciz	"libusb_interrupt_transfer() failed: err=%s"

	.no_dead_strip	_iwmbt_hci_command
.subsections_via_symbols
