	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hif_usb_send_regout
_hif_usb_send_regout:                   ## @hif_usb_send_regout
	.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, %r13
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movl	(%r15), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r15
	movq	%r13, 8(%rax)
	movq	%r14, (%rax)
	movl	4(%r14), %ebx
	movq	_USB_REG_OUT_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_usb_sndintpipe
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	movq	_hif_usb_regout_cb@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	pushq	$1
	pushq	%r15
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_usb_anchor_urb
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_usb_unanchor_urb
	movq	%r15, %rdi
	callq	_kfree
LBB0_4:
	movq	%r12, %rdi
	callq	_usb_free_urb
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_usb_free_urb
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	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_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_USB_REG_OUT_PIPE,4,2           ## @USB_REG_OUT_PIPE
	.comm	_hif_usb_regout_cb,4,2          ## @hif_usb_regout_cb
	.no_dead_strip	_hif_usb_send_regout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hif_usb_send_regout
_hif_usb_send_regout:                   ; @hif_usb_send_regout
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w1, [x24]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	stp	x20, x22, [x0]
	ldr	w23, [x20, #4]
Lloh2:
	adrp	x8, _USB_REG_OUT_PIPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_REG_OUT_PIPE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_usb_sndintpipe
	mov	x2, x0
	ldp	w4, w3, [x22]
Lloh5:
	adrp	x8, _hif_usb_regout_cb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hif_usb_regout_cb@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x6, x21
	mov	w7, #1
	bl	_usb_fill_int_urb
	mov	x0, x19
	mov	x1, x20
	bl	_usb_anchor_urb
	ldr	w1, [x24]
	mov	x0, x19
	bl	_usb_submit_urb
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_usb_unanchor_urb
	mov	x0, x21
	bl	_kfree
LBB0_4:
	mov	x0, x19
	bl	_usb_free_urb
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_usb_free_urb
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_USB_REG_OUT_PIPE,4,2           ; @USB_REG_OUT_PIPE
	.comm	_hif_usb_regout_cb,4,2          ; @hif_usb_regout_cb
	.no_dead_strip	_hif_usb_send_regout
.subsections_via_symbols
