	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DEB_D
	movq	_hexium_input_select@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rdx
	movl	4(%rax,%rdx,8), %ecx
	movl	%ecx, -24(%rbp)
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax,%rdx,8), %r8d
	movq	_I2C_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-24(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$108, %esi
	xorl	%edx, %edx
	callq	_i2c_smbus_xfer
	negq	%rax
	sbbl	%ebx, %ebx
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	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
	.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, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEB_D
Lloh2:
	adrp	x8, _hexium_input_select@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hexium_input_select@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #3
	ldr	w9, [x8, #4]
Lloh5:
	adrp	x10, _I2C_SMBUS_WRITE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	str	w9, [sp, #8]
Lloh7:
	ldr	w3, [x10]
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _I2C_SMBUS_BYTE_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	add	x6, sp, #8
	mov	x0, x20
	mov	w1, #108
	mov	w2, #0
	bl	_i2c_smbus_xfer
	cmp	x0, #0
	csetm	w0, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.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
	.no_dead_strip	_hexium_set_input
.subsections_via_symbols
