	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hexium_set_standard
_hexium_set_standard:                   ## @hexium_set_standard
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DEB_D
	movl	(%r15), %r8d
	cmpl	$-1, %r8d
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_I2C_SMBUS_BYTE_DATA@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15,%rbx,8), %eax
	movl	%eax, -48(%rbp)
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r9d
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	$108, %esi
	xorl	%edx, %edx
	callq	_i2c_smbus_xfer
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15,%rbx,8), %r8d
	incq	%rbx
	cmpl	$-1, %r8d
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movl	$-1, %eax
LBB0_6:
	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	_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	"hexium_init_done: hexium_set_standard() failed for address 0x%02x\n"

	.no_dead_strip	_hexium_set_standard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hexium_set_standard
_hexium_set_standard:                   ; @hexium_set_standard
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEB_D
	ldr	w4, [x21]
	cmn	w4, #1
	b.eq	LBB0_4
; %bb.1:
	mov	w20, #0
	add	x21, x21, #8
Lloh2:
	adrp	x22, _I2C_SMBUS_WRITE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _I2C_SMBUS_WRITE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _I2C_SMBUS_BYTE_DATA@GOTPAGE
Lloh5:
	ldr	x23, [x23, _I2C_SMBUS_BYTE_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x21, #-4]
	str	w8, [sp, #8]
	ldr	w3, [x22]
	ldr	w5, [x23]
	add	x6, sp, #8
	mov	x0, x19
	mov	w1, #108
	mov	w2, #0
	bl	_i2c_smbus_xfer
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w4, [x21], #8
	add	w20, w20, #1
	cmn	w4, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.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	"hexium_init_done: hexium_set_standard() failed for address 0x%02x\n"

	.no_dead_strip	_hexium_set_standard
.subsections_via_symbols
