	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpad_ps4_get_buttons
_hidpad_ps4_get_buttons:                ## @hidpad_ps4_get_buttons
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_BIT256_CLEAR_ALL_PTR
	cmpq	$0, 96(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_RETRO_DEVICE_ID_JOYPAD_R3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_3:
	cmpq	$0, 88(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_RETRO_DEVICE_ID_JOYPAD_L3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_5:
	cmpq	$0, 80(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_RETRO_DEVICE_ID_JOYPAD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_7:
	cmpq	$0, 72(%rbx)
	je	LBB0_9
## %bb.8:
	movq	_RETRO_DEVICE_ID_JOYPAD_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_9:
	cmpq	$0, 64(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_RETRO_DEVICE_ID_JOYPAD_R2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_11:
	cmpq	$0, 56(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_RETRO_DEVICE_ID_JOYPAD_L2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_13:
	cmpq	$0, 48(%rbx)
	je	LBB0_15
## %bb.14:
	movq	_RETRO_DEVICE_ID_JOYPAD_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_15:
	cmpq	$0, 40(%rbx)
	je	LBB0_17
## %bb.16:
	movq	_RETRO_DEVICE_ID_JOYPAD_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_17:
	cmpq	$0, 32(%rbx)
	je	LBB0_19
## %bb.18:
	movq	_RETRO_DEVICE_ID_JOYPAD_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_19:
	cmpq	$0, 24(%rbx)
	je	LBB0_21
## %bb.20:
	movq	_RETRO_DEVICE_ID_JOYPAD_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_21:
	cmpq	$0, 16(%rbx)
	je	LBB0_23
## %bb.22:
	movq	_RETRO_DEVICE_ID_JOYPAD_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_23:
	cmpq	$0, 8(%rbx)
	je	LBB0_25
## %bb.24:
	movq	_RETRO_DEVICE_ID_JOYPAD_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_25:
	movq	_RETRO_DEVICE_ID_JOYPAD_LEFT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hidpad_ps4_check_dpad
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_27:
	movq	_RETRO_DEVICE_ID_JOYPAD_DOWN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hidpad_ps4_check_dpad
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_29:
	movq	_RETRO_DEVICE_ID_JOYPAD_RIGHT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hidpad_ps4_check_dpad
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_31:
	movq	_RETRO_DEVICE_ID_JOYPAD_UP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hidpad_ps4_check_dpad
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_BIT256_SET_PTR
LBB0_33:
	cmpq	$0, (%rbx)
	je	LBB0_34
## %bb.35:
	movq	_RARCH_MENU_TOGGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BIT256_SET_PTR                 ## TAILCALL
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETRO_DEVICE_ID_JOYPAD_R3,4,2  ## @RETRO_DEVICE_ID_JOYPAD_R3
	.comm	_RETRO_DEVICE_ID_JOYPAD_L3,4,2  ## @RETRO_DEVICE_ID_JOYPAD_L3
	.comm	_RETRO_DEVICE_ID_JOYPAD_START,4,2 ## @RETRO_DEVICE_ID_JOYPAD_START
	.comm	_RETRO_DEVICE_ID_JOYPAD_SELECT,4,2 ## @RETRO_DEVICE_ID_JOYPAD_SELECT
	.comm	_RETRO_DEVICE_ID_JOYPAD_R2,4,2  ## @RETRO_DEVICE_ID_JOYPAD_R2
	.comm	_RETRO_DEVICE_ID_JOYPAD_L2,4,2  ## @RETRO_DEVICE_ID_JOYPAD_L2
	.comm	_RETRO_DEVICE_ID_JOYPAD_R,4,2   ## @RETRO_DEVICE_ID_JOYPAD_R
	.comm	_RETRO_DEVICE_ID_JOYPAD_L,4,2   ## @RETRO_DEVICE_ID_JOYPAD_L
	.comm	_RETRO_DEVICE_ID_JOYPAD_X,4,2   ## @RETRO_DEVICE_ID_JOYPAD_X
	.comm	_RETRO_DEVICE_ID_JOYPAD_A,4,2   ## @RETRO_DEVICE_ID_JOYPAD_A
	.comm	_RETRO_DEVICE_ID_JOYPAD_B,4,2   ## @RETRO_DEVICE_ID_JOYPAD_B
	.comm	_RETRO_DEVICE_ID_JOYPAD_Y,4,2   ## @RETRO_DEVICE_ID_JOYPAD_Y
	.comm	_RETRO_DEVICE_ID_JOYPAD_LEFT,4,2 ## @RETRO_DEVICE_ID_JOYPAD_LEFT
	.comm	_RETRO_DEVICE_ID_JOYPAD_DOWN,4,2 ## @RETRO_DEVICE_ID_JOYPAD_DOWN
	.comm	_RETRO_DEVICE_ID_JOYPAD_RIGHT,4,2 ## @RETRO_DEVICE_ID_JOYPAD_RIGHT
	.comm	_RETRO_DEVICE_ID_JOYPAD_UP,4,2  ## @RETRO_DEVICE_ID_JOYPAD_UP
	.comm	_RARCH_MENU_TOGGLE,4,2          ## @RARCH_MENU_TOGGLE
	.no_dead_strip	_hidpad_ps4_get_buttons
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpad_ps4_get_buttons
_hidpad_ps4_get_buttons:                ; @hidpad_ps4_get_buttons
	.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
	cbz	x0, LBB0_35
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_BIT256_CLEAR_ALL_PTR
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_R3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_R3@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_3:
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_L3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_L3@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_5:
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_START@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_7:
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_SELECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_SELECT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_9:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_11
; %bb.10:
Lloh12:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_R2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_R2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_11:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_13
; %bb.12:
Lloh15:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_L2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_L2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_13:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_15
; %bb.14:
Lloh18:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_R@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_R@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_15:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_17
; %bb.16:
Lloh21:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_L@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_L@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_17:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_19
; %bb.18:
Lloh24:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_X@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_X@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_19:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_21
; %bb.20:
Lloh27:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_A@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_A@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_21:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_23
; %bb.22:
Lloh30:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_B@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_B@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_23:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_25
; %bb.24:
Lloh33:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_Y@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_Y@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_25:
Lloh36:
	adrp	x21, _RETRO_DEVICE_ID_JOYPAD_LEFT@GOTPAGE
Lloh37:
	ldr	x21, [x21, _RETRO_DEVICE_ID_JOYPAD_LEFT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_hidpad_ps4_check_dpad
	cbz	x0, LBB0_27
; %bb.26:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_27:
Lloh38:
	adrp	x21, _RETRO_DEVICE_ID_JOYPAD_DOWN@GOTPAGE
Lloh39:
	ldr	x21, [x21, _RETRO_DEVICE_ID_JOYPAD_DOWN@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_hidpad_ps4_check_dpad
	cbz	x0, LBB0_29
; %bb.28:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_29:
Lloh40:
	adrp	x21, _RETRO_DEVICE_ID_JOYPAD_RIGHT@GOTPAGE
Lloh41:
	ldr	x21, [x21, _RETRO_DEVICE_ID_JOYPAD_RIGHT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_hidpad_ps4_check_dpad
	cbz	x0, LBB0_31
; %bb.30:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_31:
Lloh42:
	adrp	x21, _RETRO_DEVICE_ID_JOYPAD_UP@GOTPAGE
Lloh43:
	ldr	x21, [x21, _RETRO_DEVICE_ID_JOYPAD_UP@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_hidpad_ps4_check_dpad
	cbz	x0, LBB0_33
; %bb.32:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_BIT256_SET_PTR
LBB0_33:
	ldr	x8, [x20]
	cbz	x8, LBB0_35
; %bb.34:
Lloh44:
	adrp	x8, _RARCH_MENU_TOGGLE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RARCH_MENU_TOGGLE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	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	_BIT256_SET_PTR
LBB0_35:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_RETRO_DEVICE_ID_JOYPAD_R3,4,2  ; @RETRO_DEVICE_ID_JOYPAD_R3
	.comm	_RETRO_DEVICE_ID_JOYPAD_L3,4,2  ; @RETRO_DEVICE_ID_JOYPAD_L3
	.comm	_RETRO_DEVICE_ID_JOYPAD_START,4,2 ; @RETRO_DEVICE_ID_JOYPAD_START
	.comm	_RETRO_DEVICE_ID_JOYPAD_SELECT,4,2 ; @RETRO_DEVICE_ID_JOYPAD_SELECT
	.comm	_RETRO_DEVICE_ID_JOYPAD_R2,4,2  ; @RETRO_DEVICE_ID_JOYPAD_R2
	.comm	_RETRO_DEVICE_ID_JOYPAD_L2,4,2  ; @RETRO_DEVICE_ID_JOYPAD_L2
	.comm	_RETRO_DEVICE_ID_JOYPAD_R,4,2   ; @RETRO_DEVICE_ID_JOYPAD_R
	.comm	_RETRO_DEVICE_ID_JOYPAD_L,4,2   ; @RETRO_DEVICE_ID_JOYPAD_L
	.comm	_RETRO_DEVICE_ID_JOYPAD_X,4,2   ; @RETRO_DEVICE_ID_JOYPAD_X
	.comm	_RETRO_DEVICE_ID_JOYPAD_A,4,2   ; @RETRO_DEVICE_ID_JOYPAD_A
	.comm	_RETRO_DEVICE_ID_JOYPAD_B,4,2   ; @RETRO_DEVICE_ID_JOYPAD_B
	.comm	_RETRO_DEVICE_ID_JOYPAD_Y,4,2   ; @RETRO_DEVICE_ID_JOYPAD_Y
	.comm	_RETRO_DEVICE_ID_JOYPAD_LEFT,4,2 ; @RETRO_DEVICE_ID_JOYPAD_LEFT
	.comm	_RETRO_DEVICE_ID_JOYPAD_DOWN,4,2 ; @RETRO_DEVICE_ID_JOYPAD_DOWN
	.comm	_RETRO_DEVICE_ID_JOYPAD_RIGHT,4,2 ; @RETRO_DEVICE_ID_JOYPAD_RIGHT
	.comm	_RETRO_DEVICE_ID_JOYPAD_UP,4,2  ; @RETRO_DEVICE_ID_JOYPAD_UP
	.comm	_RARCH_MENU_TOGGLE,4,2          ; @RARCH_MENU_TOGGLE
	.no_dead_strip	_hidpad_ps4_get_buttons
.subsections_via_symbols
