	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dabusb_bulk
_dabusb_bulk:                           ## @dabusb_bulk
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	cmpl	$0, 8(%r14)
	movq	(%r15), %rdi
	movl	$2, %esi
	je	LBB0_1
## %bb.2:
	callq	_usb_sndbulkpipe
	jmp	LBB0_3
LBB0_1:
	callq	_usb_rcvbulkpipe
LBB0_3:
	movl	%eax, %r12d
	movq	(%r15), %rdi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	leaq	-44(%rbp), %r8
	movl	%eax, %esi
	movl	$100, %r9d
	callq	_usb_bulk_msg
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.4:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r15), %rdi
	movq	__DABUSB_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_usb_set_interface
	testq	%rax, %rax
	js	LBB0_5
LBB0_6:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_9
## %bb.7:
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movq	(%r15), %r13
	movl	%r12d, %edi
	callq	_usb_pipeendpoint
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_usb_clear_halt
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dabusb_bulk"

L_.str.1:                               ## @.str.1
	.asciz	"usb_bulk_msg failed(%d)\n"

	.comm	__DABUSB_IF,4,2                 ## @_DABUSB_IF
L_.str.2:                               ## @.str.2
	.asciz	"set_interface failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.3:                               ## @.str.3
	.asciz	"CLEAR_FEATURE request to remove STALL condition.\n"

L_.str.4:                               ## @.str.4
	.asciz	"request failed\n"

	.no_dead_strip	_dabusb_bulk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dabusb_bulk
_dabusb_bulk:                           ; @dabusb_bulk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	ldr	w8, [x19, #8]
	ldr	x0, [x20]
	mov	w1, #2
	cbz	w8, LBB0_2
; %bb.1:
	bl	_usb_sndbulkpipe
	b	LBB0_3
LBB0_2:
	bl	_usb_rcvbulkpipe
LBB0_3:
	mov	x22, x0
	ldr	x0, [x20]
	ldp	w3, w2, [x19]
	add	x4, sp, #12
	mov	x1, x22
	mov	w5, #100
	bl	_usb_bulk_msg
	mov	x21, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
	ldr	x0, [x20]
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x20]
Lloh4:
	adrp	x8, __DABUSB_IF@GOTPAGE
Lloh5:
	ldr	x8, [x8, __DABUSB_IF@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_usb_set_interface
	tbnz	x0, #63, LBB0_10
LBB0_5:
Lloh7:
	adrp	x8, _EPIPE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	x0, [x20]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	ldr	x23, [x20]
	mov	x0, x22
	bl	_usb_pipeendpoint
	mov	x1, x0
	mov	x0, x23
	bl	_usb_clear_halt
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
LBB0_8:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_9:
	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
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	x0, [x20]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dabusb_bulk"

l_.str.1:                               ; @.str.1
	.asciz	"usb_bulk_msg failed(%d)\n"

	.comm	__DABUSB_IF,4,2                 ; @_DABUSB_IF
l_.str.2:                               ; @.str.2
	.asciz	"set_interface failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.3:                               ; @.str.3
	.asciz	"CLEAR_FEATURE request to remove STALL condition.\n"

l_.str.4:                               ; @.str.4
	.asciz	"request failed\n"

	.no_dead_strip	_dabusb_bulk
.subsections_via_symbols
