	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_autoconfigure_override_handler
_input_autoconfigure_override_handler:  ## @input_autoconfigure_override_handler
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	_BLISSBOX_VID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_BLISSBOX_UPDATE_MODE_PID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	_BLISSBOX_OLD_PID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RARCH_LOG                      ## TAILCALL
LBB0_8:
	movq	_BLISSBOX_PID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %r14
	subq	%rcx, %r14
	jl	LBB0_18
## %bb.9:
	movq	_BLISSBOX_MAX_PAD_INDEX@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_18
## %bb.10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -65(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	movaps	%xmm0, -288(%rbp)
	movaps	%xmm0, -304(%rbp)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movq	_blissbox_pads@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%r14d, %r13
	movq	(%rax,%r13,8), %r15
	testq	%r15, %r15
	jne	LBB0_12
## %bb.11:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_input_autoconfigure_get_blissbox_pad_type
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_16
LBB0_12:
	movq	(%r15), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_13
LBB0_16:
	movq	_blissbox_pad_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	cltq
	shlq	$4, %rax
	leaq	(%rax,%rbx), %r15
	addq	$-16, %r15
	jmp	LBB0_17
LBB0_13:
	movq	(%r15), %rsi
	movl	8(%r15), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movl	16(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_15
## %bb.14:
	callq	_free
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	leaq	-304(%rbp), %r14
	movq	%r14, %rdi
	movl	$255, %edx
	callq	_strlcat
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	$255, %edx
	callq	_strlcat
	movq	%r14, %rdi
	callq	_strdup
	movl	%eax, 16(%rbx)
LBB0_17:
	movq	(%r12), %rax
	movq	%r15, (%rax,%r13,8)
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BLISSBOX_VID,8,3               ## @BLISSBOX_VID
	.comm	_BLISSBOX_UPDATE_MODE_PID,8,3   ## @BLISSBOX_UPDATE_MODE_PID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Autoconf]: Bliss-Box in update mode detected. Ignoring.\n"

	.comm	_BLISSBOX_OLD_PID,8,3           ## @BLISSBOX_OLD_PID
L_.str.1:                               ## @.str.1
	.asciz	"[Autoconf]: Bliss-Box 1.0 firmware detected. Please update to 2.0 or later.\n"

	.comm	_BLISSBOX_PID,8,3               ## @BLISSBOX_PID
	.comm	_BLISSBOX_MAX_PAD_INDEX,8,3     ## @BLISSBOX_MAX_PAD_INDEX
L_.str.2:                               ## @.str.2
	.asciz	"[Autoconf]: Bliss-Box detected. Getting pad type...\n"

	.comm	_blissbox_pads,8,3              ## @blissbox_pads
L_.str.3:                               ## @.str.3
	.asciz	"[Autoconf]: Found Bliss-Box pad type: %s (%d) in port#%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Bliss-Box 4-Play "

	.comm	_blissbox_pad_types,8,3         ## @blissbox_pad_types
	.no_dead_strip	_input_autoconfigure_override_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_autoconfigure_override_handler
_input_autoconfigure_override_handler:  ; @input_autoconfigure_override_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _BLISSBOX_VID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BLISSBOX_VID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _BLISSBOX_UPDATE_MODE_PID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BLISSBOX_UPDATE_MODE_PID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x9, _BLISSBOX_OLD_PID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BLISSBOX_OLD_PID@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.6:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #368
	b	_RARCH_LOG
LBB0_8:
Lloh22:
	adrp	x9, _BLISSBOX_PID@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BLISSBOX_PID@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	subs	x23, x8, x9
	b.lt	LBB0_18
; %bb.9:
Lloh25:
	adrp	x10, _BLISSBOX_MAX_PAD_INDEX@GOTPAGE
Lloh26:
	ldr	x10, [x10, _BLISSBOX_MAX_PAD_INDEX@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	add	x9, x10, x9
	cmp	x8, x9
	b.gt	LBB0_18
; %bb.10:
	movi.2d	v0, #0000000000000000
	add	x8, sp, #16
	stur	q0, [x8, #255]
	stp	q0, q0, [sp, #240]
	stp	q0, q0, [sp, #208]
	stp	q0, q0, [sp, #176]
	stp	q0, q0, [sp, #144]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	str	q0, [sp, #32]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_RARCH_LOG
Lloh30:
	adrp	x21, _blissbox_pads@GOTPAGE
Lloh31:
	ldr	x21, [x21, _blissbox_pads@GOTPAGEOFF]
	ldr	x8, [x21]
	sxtw	x22, w23
	sbfiz	x9, x23, #3, #32
	ldr	x20, [x8, x9]
	cbnz	x20, LBB0_12
; %bb.11:
	ldp	x0, x1, [x19]
	bl	_input_autoconfigure_get_blissbox_pad_type
	mov	x20, x0
	cbz	x0, LBB0_13
LBB0_12:
	ldr	x0, [x20]
	bl	_string_is_empty
	cbz	w0, LBB0_14
LBB0_13:
Lloh32:
	adrp	x8, _blissbox_pad_types@GOTPAGE
Lloh33:
	ldr	x8, [x8, _blissbox_pad_types@GOTPAGEOFF]
Lloh34:
	ldr	x19, [x8]
	mov	x0, x19
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	add	x20, x19, w8, sxtw #4
	b	LBB0_17
LBB0_14:
	ldr	x8, [x20]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	ldr	w9, [x20, #8]
	stp	x9, x23, [sp, #8]
	str	x8, [sp]
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_RARCH_LOG
	ldr	w0, [x19, #16]
	cbz	w0, LBB0_16
; %bb.15:
	bl	_free
LBB0_16:
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #32
	mov	w2, #255
	bl	_strlcat
	ldr	x1, [x20]
	add	x0, sp, #32
	mov	w2, #255
	bl	_strlcat
	add	x0, sp, #32
	bl	_strdup
	str	w0, [x19, #16]
LBB0_17:
	ldr	x8, [x21]
	str	x20, [x8, x22, lsl #3]
LBB0_18:
	ldur	x8, [x29, #-56]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_BLISSBOX_VID,8,3               ; @BLISSBOX_VID
	.comm	_BLISSBOX_UPDATE_MODE_PID,8,3   ; @BLISSBOX_UPDATE_MODE_PID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Autoconf]: Bliss-Box in update mode detected. Ignoring.\n"

	.comm	_BLISSBOX_OLD_PID,8,3           ; @BLISSBOX_OLD_PID
l_.str.1:                               ; @.str.1
	.asciz	"[Autoconf]: Bliss-Box 1.0 firmware detected. Please update to 2.0 or later.\n"

	.comm	_BLISSBOX_PID,8,3               ; @BLISSBOX_PID
	.comm	_BLISSBOX_MAX_PAD_INDEX,8,3     ; @BLISSBOX_MAX_PAD_INDEX
l_.str.2:                               ; @.str.2
	.asciz	"[Autoconf]: Bliss-Box detected. Getting pad type...\n"

	.comm	_blissbox_pads,8,3              ; @blissbox_pads
l_.str.3:                               ; @.str.3
	.asciz	"[Autoconf]: Found Bliss-Box pad type: %s (%d) in port#%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Bliss-Box 4-Play "

	.comm	_blissbox_pad_types,8,3         ; @blissbox_pad_types
	.no_dead_strip	_input_autoconfigure_override_handler
.subsections_via_symbols
