	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1201_drvr_start
_zd1201_drvr_start:                     ## @zd1201_drvr_start
	.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
	movq	%rdi, %r14
	movq	_ZD1201_RXSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	8(%r14), %ebx
	movl	(%r14), %r12d
	movl	4(%r14), %esi
	movl	%ebx, %edi
	callq	_usb_rcvbulkpipe
	movl	(%r13), %r8d
	movq	_zd1201_usbrx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, (%rsp)
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_usb_fill_bulk_urb
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_3
## %bb.12:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	_ZD1201_CMDCODE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_zd1201_docmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	_ZD1201_RID_CNFMAXTXBUFFERNUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_zd1201_getconfig
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_11:
	movl	(%r14), %edi
	callq	_usb_kill_urb
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-44(%rbp), %edi
	callq	_le16_to_cpu
	testw	%ax, %ax
	jle	LBB0_6
## %bb.7:
	movswl	%ax, %r15d
	movq	_ZD1201_CMDCODE_ALLOC@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$1514, %edx                     ## imm = 0x5EA
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_zd1201_docmd
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	xorl	%ebx, %ebx
	decl	%r15d
	jne	LBB0_9
	jmp	LBB0_13
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_10:
	movl	%eax, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ZD1201_RXSIZE,4,2              ## @ZD1201_RXSIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_zd1201_usbrx,4,2               ## @zd1201_usbrx
	.comm	_ZD1201_CMDCODE_INIT,4,2        ## @ZD1201_CMDCODE_INIT
	.comm	_ZD1201_RID_CNFMAXTXBUFFERNUMBER,4,2 ## @ZD1201_RID_CNFMAXTXBUFFERNUMBER
	.comm	_ZD1201_CMDCODE_ALLOC,4,2       ## @ZD1201_CMDCODE_ALLOC
	.no_dead_strip	_zd1201_drvr_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1201_drvr_start
_zd1201_drvr_start:                     ; @zd1201_drvr_start
	.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, x0
Lloh0:
	adrp	x24, _ZD1201_RXSIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ZD1201_RXSIZE@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldp	w1, w20, [x19, #4]
	ldr	w22, [x19]
	mov	x0, x20
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w4, [x24]
Lloh4:
	adrp	x8, _zd1201_usbrx@GOTPAGE
Lloh5:
	ldr	x8, [x8, _zd1201_usbrx@GOTPAGEOFF]
Lloh6:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	x3, x21
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_usb_submit_urb
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_7
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _ZD1201_CMDCODE_INIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ZD1201_CMDCODE_INIT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_zd1201_docmd
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _ZD1201_RID_CNFMAXTXBUFFERNUMBER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZD1201_RID_CNFMAXTXBUFFERNUMBER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #4
	bl	_zd1201_getconfig
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_6:
	ldr	w0, [x19]
	bl	_usb_kill_urb
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x21, x0
Lloh16:
	adrp	x22, _ZD1201_CMDCODE_ALLOC@GOTPAGE
Lloh17:
	ldr	x22, [x22, _ZD1201_CMDCODE_ALLOC@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1514
	mov	w3, #0
	mov	w4, #0
	bl	_zd1201_docmd
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	subs	w21, w21, #1
	b.ne	LBB0_10
	b	LBB0_7
LBB0_12:
	mov	w20, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ZD1201_RXSIZE,4,2              ; @ZD1201_RXSIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_zd1201_usbrx,4,2               ; @zd1201_usbrx
	.comm	_ZD1201_CMDCODE_INIT,4,2        ; @ZD1201_CMDCODE_INIT
	.comm	_ZD1201_RID_CNFMAXTXBUFFERNUMBER,4,2 ; @ZD1201_RID_CNFMAXTXBUFFERNUMBER
	.comm	_ZD1201_CMDCODE_ALLOC,4,2       ; @ZD1201_CMDCODE_ALLOC
	.no_dead_strip	_zd1201_drvr_start
.subsections_via_symbols
