	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pad_connection_init            ## -- Begin function pad_connection_init
	.p2align	4, 0x90
_pad_connection_init:                   ## @pad_connection_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_MAX_USERS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	cmpl	%edi, %edx
	jae	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_RARCH_WARN
	movl	(%r14), %ebx
LBB0_2:
	leal	1(%rbx), %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.5:
	movl	%ebx, %ecx
	leaq	-1(%rcx), %rdx
	movl	%ecx, %eax
	andl	$3, %eax
	cmpq	$3, %rdx
	jae	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_7:
	andl	$-4, %ecx
	leaq	80(%r14), %rsi
	xorl	%edx, %edx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -80(%rsi)
	movups	%xmm0, -72(%rsi)
	movl	$0, -56(%rsi)
	movups	%xmm0, -48(%rsi)
	movl	$0, -32(%rsi)
	movups	%xmm0, -24(%rsi)
	movl	$0, -8(%rsi)
	addq	$4, %rdx
	movups	%xmm0, (%rsi)
	addq	$96, %rsi
	cmpq	%rdx, %rcx
	jne	LBB0_8
LBB0_9:
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	(%rdx,%rdx,2), %rcx
	leaq	(%r14,%rcx,8), %rcx
	addq	$8, %rcx
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	xorl	%edx, %edx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -8(%rcx,%rdx)
	movups	%xmm0, (%rcx,%rdx)
	addq	$24, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_set_end_of_list
LBB0_13:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[joypad] invalid number of pads requested (%d), using default (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pad_connection_init            ; -- Begin function pad_connection_init
	.p2align	2
_pad_connection_init:                   ; @pad_connection_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _MAX_USERS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_USERS@GOTPAGEOFF]
	ldr	w2, [x20]
	cmp	w2, w0
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_RARCH_WARN
	ldr	w19, [x20]
LBB0_2:
	add	w0, w19, #1
	mov	w1, #24
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.3:
	cbz	w19, LBB0_6
; %bb.4:
	mov	w8, w19
	add	x9, x20, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x9, #-8]
	stp	xzr, xzr, [x9], #24
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_set_end_of_list
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[joypad] invalid number of pads requested (%d), using default (%d)\n"

.subsections_via_symbols
