	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_write_reg_async
_smsc95xx_write_reg_async:              ## @smsc95xx_write_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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movl	(%r13), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r13)
	movq	_USB_VENDOR_REQUEST_WRITE_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movl	$0, 4(%r13)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r13)
	movl	$4, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movl	(%r14), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_smsc95xx_async_cmd_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r13, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	$4, %r9d
	pushq	%r13
	pushq	%r10
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_devwarn
	movq	%r13, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_usb_free_urb
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_devwarn
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_devwarn
	movq	%r15, %rdi
	callq	_usb_free_urb
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error allocating URB"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Error allocating control msg"

	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.comm	_USB_VENDOR_REQUEST_WRITE_REGISTER,4,2 ## @USB_VENDOR_REQUEST_WRITE_REGISTER
	.comm	_smsc95xx_async_cmd_callback,4,2 ## @smsc95xx_async_cmd_callback
L_.str.2:                               ## @.str.2
	.asciz	"Error submitting control msg, sts=%d"

	.no_dead_strip	_smsc95xx_write_reg_async
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_write_reg_async
_smsc95xx_write_reg_async:              ; @smsc95xx_write_reg_async
	.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	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w1, [x24]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _USB_VENDOR_REQUEST_WRITE_REGISTER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _USB_VENDOR_REQUEST_WRITE_REGISTER@GOTPAGEOFF]
	stp	w8, wzr, [x0]
Lloh13:
	ldr	w8, [x9]
	str	w8, [x0, #24]
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x21, #16]
	mov	w0, #4
	bl	_cpu_to_le16
	str	x0, [x21, #8]
	ldr	w23, [x20]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x2, x0
Lloh14:
	adrp	x8, _smsc95xx_async_cmd_callback@GOTPAGE
Lloh15:
	ldr	x8, [x8, _smsc95xx_async_cmd_callback@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	mov	x4, x22
	mov	w5, #4
	mov	x7, x21
	bl	_usb_fill_control_urb
	ldr	w1, [x24]
	mov	x0, x19
	bl	_usb_submit_urb
	mov	x22, x0
	tbz	w0, #31, LBB0_7
; %bb.3:
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devwarn
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_usb_free_urb
	b	LBB0_7
LBB0_4:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devwarn
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devwarn
	mov	x0, x19
	bl	_usb_free_urb
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error allocating URB"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Error allocating control msg"

	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.comm	_USB_VENDOR_REQUEST_WRITE_REGISTER,4,2 ; @USB_VENDOR_REQUEST_WRITE_REGISTER
	.comm	_smsc95xx_async_cmd_callback,4,2 ; @smsc95xx_async_cmd_callback
l_.str.2:                               ; @.str.2
	.asciz	"Error submitting control msg, sts=%d"

	.no_dead_strip	_smsc95xx_write_reg_async
.subsections_via_symbols
