	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1201_docmd
_zd1201_docmd:                          ## @zd1201_docmd
	.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	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_ZD1201_USB_CMDREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movl	%eax, 6(%rbx)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movl	%eax, 10(%rbx)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %esi
	movl	4(%r13), %r14d
	movl	%r14d, %edi
	callq	_usb_sndbulkpipe
	movq	_zd1201_usbfree@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r13, (%rsp)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	%rbx, %rcx
	movl	$16, %r8d
	callq	_usb_fill_bulk_urb
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_usb_free_urb
	movl	%r14d, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ZD1201_USB_CMDREQ,4,2          ## @ZD1201_USB_CMDREQ
	.comm	_zd1201_usbfree,4,2             ## @zd1201_usbfree
	.no_dead_strip	_zd1201_docmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1201_docmd
_zd1201_docmd:                          ; @zd1201_docmd
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _ZD1201_USB_CMDREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZD1201_USB_CMDREQ@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x19]
	mov	x0, x24
	bl	_cpu_to_le16
	str	w0, [x19, #4]
	mov	x0, x23
	bl	_cpu_to_le16
	stur	w0, [x19, #6]
	mov	x0, x22
	bl	_cpu_to_le16
	str	w0, [x19, #8]
	mov	x0, x21
	bl	_cpu_to_le16
	stur	w0, [x19, #10]
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldp	w1, w22, [x20]
	mov	x0, x22
	bl	_usb_sndbulkpipe
	mov	x2, x0
Lloh5:
	adrp	x8, _zd1201_usbfree@GOTPAGE
Lloh6:
	ldr	x8, [x8, _zd1201_usbfree@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	mov	w4, #16
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	ldr	w1, [x25]
	mov	x0, x21
	bl	_usb_submit_urb
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	bl	_usb_free_urb
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_kfree
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ZD1201_USB_CMDREQ,4,2          ; @ZD1201_USB_CMDREQ
	.comm	_zd1201_usbfree,4,2             ; @zd1201_usbfree
	.no_dead_strip	_zd1201_docmd
.subsections_via_symbols
