	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcs7830_set_reg_async
_mcs7830_set_reg_async:                 ## @mcs7830_set_reg_async
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	$32, %edi
	callq	_kmalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_MCS7830_WR_BMREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_MCS7830_WR_BREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	(%r15), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_mcs7830_async_cmd_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	%r12d, %r9d
	pushq	%rbx
	pushq	%r10
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_2:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_free_urb                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error allocating URB in write_cmd_async!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate memory for control request\n"

	.comm	_MCS7830_WR_BMREQ,4,2           ## @MCS7830_WR_BMREQ
	.comm	_MCS7830_WR_BREQ,4,2            ## @MCS7830_WR_BREQ
	.comm	_mcs7830_async_cmd_callback,4,2 ## @mcs7830_async_cmd_callback
L_.str.2:                               ## @.str.2
	.asciz	"Error submitting the control message: ret=%d\n"

	.no_dead_strip	_mcs7830_set_reg_async
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcs7830_set_reg_async
_mcs7830_set_reg_async:                 ; @mcs7830_set_reg_async
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x3
	mov	x22, 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, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w1, [x25]
	mov	w0, #32
	bl	_kmalloc
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _MCS7830_WR_BMREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCS7830_WR_BMREQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MCS7830_WR_BREQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MCS7830_WR_BREQ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #24]
	str	xzr, [x21, #16]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [x21, #8]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x21]
	ldr	x24, [x20]
	mov	x0, x24
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x2, x0
Lloh8:
	adrp	x8, _mcs7830_async_cmd_callback@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mcs7830_async_cmd_callback@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x3, x21
	mov	x4, x23
	mov	x5, x22
	mov	x7, x21
	bl	_usb_fill_control_urb
	ldr	w1, [x25]
	mov	x0, x19
	bl	_usb_submit_urb
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	x0, [x20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_dev_dbg
LBB0_5:
	ldr	x0, [x20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20]
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
LBB0_7:
	bl	_dev_err
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_usb_free_urb
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error allocating URB in write_cmd_async!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate memory for control request\n"

	.comm	_MCS7830_WR_BMREQ,4,2           ; @MCS7830_WR_BMREQ
	.comm	_MCS7830_WR_BREQ,4,2            ; @MCS7830_WR_BREQ
	.comm	_mcs7830_async_cmd_callback,4,2 ; @mcs7830_async_cmd_callback
l_.str.2:                               ; @.str.2
	.asciz	"Error submitting the control message: ret=%d\n"

	.no_dead_strip	_mcs7830_set_reg_async
.subsections_via_symbols
