	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpad_init_output
_xpad_init_output:                      ## @xpad_init_output
	.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), %rax
	movq	_XTYPE_UNKNOWN@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	leaq	36(%rsi), %rdi
	callq	_init_usb_anchor
	movl	16(%rbx), %edi
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	8(%rbx), %rcx
	callq	_usb_alloc_coherent
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	movl	(%r14), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	16(%rbx), %r13d
	movl	4(%r15), %esi
	movl	%r13d, %edi
	callq	_usb_sndintpipe
	movl	12(%rbx), %ecx
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_xpad_irq_out@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	(%r15), %r10d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	pushq	%r10
	pushq	%rbx
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movl	8(%rbx), %eax
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	16(%rbx), %edi
	movl	(%r13), %esi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	callq	_usb_free_coherent
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XTYPE_UNKNOWN,8,3              ## @XTYPE_UNKNOWN
	.comm	_XPAD_PKT_LEN,4,2               ## @XPAD_PKT_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_xpad_irq_out,4,2               ## @xpad_irq_out
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_xpad_init_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpad_init_output
_xpad_init_output:                      ; @xpad_init_output
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _XTYPE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XTYPE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_7
LBB0_2:
	mov	x20, x2
	mov	x19, x1
	add	x0, x1, #36
	bl	_init_usb_anchor
Lloh3:
	adrp	x23, _XPAD_PKT_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _XPAD_PKT_LEN@GOTPAGEOFF]
	ldr	w0, [x19, #16]
	ldr	w1, [x23]
Lloh5:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, x19, #8
	bl	_usb_alloc_coherent
	str	w0, [x19, #12]
	cbz	w0, LBB0_5
; %bb.3:
	add	x0, x19, #32
	bl	_spin_lock_init
	ldr	w1, [x21]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	ldr	w22, [x19, #16]
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	_usb_sndintpipe
	mov	x2, x0
	ldr	w3, [x19, #12]
	ldr	w4, [x23]
Lloh7:
	adrp	x8, _xpad_irq_out@GOTPAGE
Lloh8:
	ldr	x8, [x8, _xpad_irq_out@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	ldr	w7, [x20]
	mov	x0, x21
	mov	x1, x22
	mov	x6, x19
	bl	_usb_fill_int_urb
	mov	w20, #0
	ldr	w8, [x19, #8]
Lloh10:
	adrp	x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
	ldr	x10, [x19, #24]
Lloh12:
	ldr	w9, [x9]
	ldr	w11, [x10]
	orr	w9, w11, w9
	stp	w9, w8, [x10]
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	ldp	w2, w0, [x19, #12]
	ldr	w1, [x23]
	ldr	w3, [x19, #8]
	bl	_usb_free_coherent
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_XTYPE_UNKNOWN,8,3              ; @XTYPE_UNKNOWN
	.comm	_XPAD_PKT_LEN,4,2               ; @XPAD_PKT_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_xpad_irq_out,4,2               ; @xpad_irq_out
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_xpad_init_output
.subsections_via_symbols
