	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xpad360w_poweroff_controller
LCPI0_0:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	8                               ## 0x8
	.long	192                             ## 0xc0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xpad360w_poweroff_controller:          ## @xpad360w_poweroff_controller
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	_XPAD_OUT_CMD_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	shlq	$4, %rbx
	movq	(%r15,%rbx), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,8,192]
	movups	%xmm0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax)
	movups	%xmm0, 16(%rax)
	movabsq	$4294967308, %rax               ## imm = 0x10000000C
	movq	%rax, 8(%r15,%rbx)
	movl	$-1, (%r12)
	movq	%r12, %rdi
	callq	_xpad_try_sending_next_out_packet
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XPAD_OUT_CMD_IDX,8,3           ## @XPAD_OUT_CMD_IDX
	.no_dead_strip	_xpad360w_poweroff_controller
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function xpad360w_poweroff_controller
lCPI0_0:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	8                               ; 0x8
	.long	192                             ; 0xc0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	12                              ; 0xc
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xpad360w_poweroff_controller:          ; @xpad360w_poweroff_controller
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _XPAD_OUT_CMD_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XPAD_OUT_CMD_IDX@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x8, x21, x22, lsl #4
	ldr	x9, [x8]
Lloh3:
	adrp	x10, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x10, lCPI0_0@PAGEOFF]
	movi.2d	v1, #0000000000000000
	stp	q1, q1, [x9, #16]
	str	q0, [x9]
Lloh5:
	adrp	x9, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [x8, #8]
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x19
	bl	_xpad_try_sending_next_out_packet
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XPAD_OUT_CMD_IDX,8,3           ; @XPAD_OUT_CMD_IDX
	.no_dead_strip	_xpad360w_poweroff_controller
.subsections_via_symbols
