	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_config_write_keys              ## -- Begin function config_write_keys
	.p2align	4, 0x90
_config_write_keys:                     ## @config_write_keys
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IN_MAX_DEVS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_22
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movq	_IN_MAX_DEVS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_22
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
	movl	%r15d, %edi
	callq	_in_get_dev_binds
	movq	%rax, %r14
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_in_get_dev_name
	movl	$0, -84(%rbp)
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_IN_CFG_BIND_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	leaq	-84(%rbp), %rdx
	callq	_in_get_config
	cmpl	$0, -84(%rbp)
	jle	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movl	%r15d, -100(%rbp)               ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	cmpl	-84(%rbp), %ebx
	movl	-100(%rbp), %r15d               ## 4-byte Reload
	jge	LBB0_21
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
	movb	$0, -49(%rbp)
	movb	$0, -80(%rbp)
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_in_get_key_name
	movq	%rax, %r14
	movq	_IN_BINDTYPE_PLAYER12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_IN_BIND_OFFS
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rax,4), %r15d
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=3
	addq	$16, %r13
	testl	%r15d, %r15d
	je	LBB0_14
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_me_ctrl_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	movl	(%rax,%r13), %r12d
	testl	%r15d, %r12d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=3
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$31, %edx
	callq	_strncpy
	movq	%rbx, %rdi
	callq	_mystrip
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	notl	%r12d
	andl	%r12d, %r15d
	movq	_me_ctrl_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13), %r12d
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=3
	shll	$16, %r12d
	testl	%r15d, %r12d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	8(%rax,%r13), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$31, %edx
	callq	_strncpy
	movq	%rbx, %rdi
	callq	_mystrip
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	notl	%r12d
	andl	%r12d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	_IN_BINDTYPE_EMU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	callq	_IN_BIND_OFFS
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rax,4), %r15d
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	$8, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=3
	addq	$16, %rbx
	testl	%r15d, %r15d
	je	LBB0_20
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_emuctrl_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=3
	movl	-8(%rax,%rbx), %r12d
	testl	%r15d, %r12d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=3
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	$31, %edx
	callq	_strncpy
	movq	%r13, %rdi
	callq	_mystrip
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	notl	%r12d
	andl	%r12d, %r15d
	jmp	LBB0_19
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IN_MAX_DEVS,4,2                ## @IN_MAX_DEVS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"binddev = %s\n"

	.comm	_IN_CFG_BIND_COUNT,4,2          ## @IN_CFG_BIND_COUNT
	.comm	_IN_BINDTYPE_PLAYER12,4,2       ## @IN_BINDTYPE_PLAYER12
	.comm	_me_ctrl_actions,8,3            ## @me_ctrl_actions
L_.str.1:                               ## @.str.1
	.asciz	"bind %s = player1 %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"bind %s = player2 %s\n"

	.comm	_IN_BINDTYPE_EMU,4,2            ## @IN_BINDTYPE_EMU
	.comm	_emuctrl_actions,8,3            ## @emuctrl_actions
L_.str.3:                               ## @.str.3
	.asciz	"bind %s = %s\n"

	.comm	_in_adev,8,3                    ## @in_adev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_config_write_keys              ; -- Begin function config_write_keys
	.p2align	2
_config_write_keys:                     ; @config_write_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x8, _IN_MAX_DEVS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IN_MAX_DEVS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.1:
	mov	x19, x0
	mov	w20, #0
Lloh6:
	adrp	x21, _emuctrl_actions@GOTPAGE
Lloh7:
	ldr	x21, [x21, _emuctrl_actions@GOTPAGEOFF]
Lloh8:
	adrp	x28, _me_ctrl_actions@GOTPAGE
Lloh9:
	ldr	x28, [x28, _me_ctrl_actions@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh12:
	adrp	x24, l_.str.1@PAGE
Lloh13:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
Lloh14:
	adrp	x8, _IN_MAX_DEVS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IN_MAX_DEVS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_22
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;       Child Loop BB0_19 Depth 3
	mov	x0, x20
	bl	_in_get_dev_binds
	mov	x22, x0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_in_get_dev_name
	str	wzr, [sp, #36]
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	cbz	x22, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [sp]
	mov	x0, x19
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh19:
	adrp	x8, _IN_CFG_BIND_COUNT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IN_CFG_BIND_COUNT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #36
	mov	x0, x20
	bl	_in_get_config
	ldr	w8, [sp, #36]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w26, w26, #1
	ldr	w8, [sp, #36]
	cmp	w26, w8
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;       Child Loop BB0_19 Depth 3
	strb	wzr, [sp, #71]
	strb	wzr, [sp, #40]
	mov	x0, x20
	mov	x1, x26
	bl	_in_get_key_name
	mov	x27, x0
Lloh22:
	adrp	x8, _IN_BINDTYPE_PLAYER12@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IN_BINDTYPE_PLAYER12@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_IN_BIND_OFFS
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w20, [x8, x0, lsl #2]
	cbz	w20, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x25, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	add	x25, x25, #16
	cbz	w20, LBB0_16
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x28]
	add	x9, x8, x25
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	w22, [x8, x25]
	tst	w22, w20
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=3
	add	x0, sp, #40
	mov	w2, #31
	bl	_strncpy
	add	x0, sp, #40
	bl	_mystrip
	stp	x27, x0, [sp]
	mov	x0, x19
	mov	x1, x24
	bl	_fprintf
	bic	w20, w20, w22
	ldr	x8, [x28]
	ldr	w22, [x8, x25]
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=3
	lsl	w22, w22, #16
	tst	w22, w20
	b.eq	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=3
	add	x8, x8, x25
	ldr	x1, [x8, #8]
	add	x0, sp, #40
	mov	w2, #31
	bl	_strncpy
	add	x0, sp, #40
	bl	_mystrip
	stp	x27, x0, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_fprintf
	bic	w20, w20, w22
	b	LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh25:
	adrp	x8, _IN_BINDTYPE_EMU@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IN_BINDTYPE_EMU@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_IN_BIND_OFFS
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w20, [x8, x0, lsl #2]
	cbz	w20, LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x25, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=3
	add	x25, x25, #16
	cbz	w20, LBB0_7
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x21]
	add	x9, x8, x25
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_7
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	w22, [x8, x25]
	tst	w22, w20
	b.eq	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x0, sp, #40
	mov	w2, #31
	bl	_strncpy
	add	x0, sp, #40
	bl	_mystrip
	stp	x27, x0, [sp]
	mov	x0, x19
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	bic	w20, w20, w22
	b	LBB0_18
LBB0_22:
	ldr	x8, [sp, #72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IN_MAX_DEVS,4,2                ; @IN_MAX_DEVS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"binddev = %s\n"

	.comm	_IN_CFG_BIND_COUNT,4,2          ; @IN_CFG_BIND_COUNT
	.comm	_IN_BINDTYPE_PLAYER12,4,2       ; @IN_BINDTYPE_PLAYER12
	.comm	_me_ctrl_actions,8,3            ; @me_ctrl_actions
l_.str.1:                               ; @.str.1
	.asciz	"bind %s = player1 %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"bind %s = player2 %s\n"

	.comm	_IN_BINDTYPE_EMU,4,2            ; @IN_BINDTYPE_EMU
	.comm	_emuctrl_actions,8,3            ; @emuctrl_actions
l_.str.3:                               ; @.str.3
	.asciz	"bind %s = %s\n"

	.comm	_in_adev,8,3                    ; @in_adev
.subsections_via_symbols
