	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function android_joypad_destroy
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_android_joypad_destroy:                ## @android_joypad_destroy
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testq	%r14, %r14
	je	LBB0_12
## %bb.1:
	movq	_g_android@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	movq	_MAX_AXIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %r12
	shlq	$3, %r12
	cmpl	$1, %r14d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
LBB0_9:
	testb	$1, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_12
## %bb.10:
	movq	(%r13,%r15,8), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rdi
	movq	%r12, %rsi
	callq	___bzero
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	andl	$-2, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %r15
	cmpq	%r15, %r14
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r15,8), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rdi
	movq	%r12, %rsi
	callq	___bzero
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13,%r15,8), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax,%r15,8), %rdi
	movq	%r12, %rsi
	callq	___bzero
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_g_android,8,3                  ## @g_android
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.comm	_MAX_AXIS,4,2                   ## @MAX_AXIS
	.no_dead_strip	_android_joypad_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function android_joypad_destroy
_android_joypad_destroy:                ; @android_joypad_destroy
	.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
Lloh0:
	adrp	x8, _DEFAULT_MAX_PADS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_MAX_PADS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, #0
Lloh3:
	adrp	x9, _g_android@GOTPAGE
Lloh4:
	ldr	x9, [x9, _g_android@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x9]
	ldr	x22, [x21, #8]
Lloh6:
	adrp	x9, _MAX_AXIS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_AXIS@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x9]
	lsl	x19, x23, #3
	lsl	x24, x8, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #8
	cmp	x24, x20
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, x20]
	stp	xzr, xzr, [x8]
	cbz	w23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x20]
	mov	x1, x19
	bl	_bzero
	b	LBB0_2
LBB0_5:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_g_android,8,3                  ; @g_android
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.comm	_MAX_AXIS,4,2                   ; @MAX_AXIS
	.no_dead_strip	_android_joypad_destroy
.subsections_via_symbols
