	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hexium_set_input
_hexium_set_input:                      ## @hexium_set_input
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DEB_D
	movslq	%r12d, %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_hexium_input_select@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax,%r15,8), %ebx
	movl	4(%rax,%r15,8), %eax
	movl	%eax, -48(%rbp)
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_I2C_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	movl	$78, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	callq	_i2c_smbus_xfer
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_pr_debug
	incq	%r15
	cmpq	$8, %r15
	jne	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_hexium_input_select,8,3        ## @hexium_input_select
	.comm	_I2C_SMBUS_WRITE,4,2            ## @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ## @I2C_SMBUS_BYTE_DATA
L_.str.1:                               ## @.str.1
	.asciz	"%d: 0x%02x => 0x%02x\n"

	.no_dead_strip	_hexium_set_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hexium_set_input
_hexium_set_input:                      ; @hexium_set_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEB_D
	mov	x23, #0
	sxtw	x24, w19
Lloh2:
	adrp	x25, _hexium_input_select@GOTPAGE
Lloh3:
	ldr	x25, [x25, _hexium_input_select@GOTPAGEOFF]
Lloh4:
	adrp	x26, _I2C_SMBUS_WRITE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _I2C_SMBUS_WRITE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _I2C_SMBUS_BYTE_DATA@GOTPAGE
Lloh7:
	ldr	x27, [x27, _I2C_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x8, [x8, x24, lsl #3]
	add	x8, x8, x23
	ldp	w22, w8, [x8]
	str	w8, [sp, #8]
	ldr	w3, [x26]
	ldr	w5, [x27]
	add	x6, sp, #8
	mov	x0, x20
	mov	w1, #78
	mov	w2, #0
	mov	x4, x22
	bl	_i2c_smbus_xfer
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w3, [sp, #8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_pr_debug
	add	x23, x23, #8
	cmp	x23, #64
	b.ne	LBB0_1
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_hexium_input_select,8,3        ; @hexium_input_select
	.comm	_I2C_SMBUS_WRITE,4,2            ; @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ; @I2C_SMBUS_BYTE_DATA
l_.str.1:                               ; @.str.1
	.asciz	"%d: 0x%02x => 0x%02x\n"

	.no_dead_strip	_hexium_set_input
.subsections_via_symbols
