	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm1105_set_voltage
_dm1105_set_voltage:                    ## @dm1105_set_voltage
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_frontend_to_dm1105_dev
	movq	%rax, %rbx
	movq	_dm1105_boards@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movl	4(%rax,%rcx), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_dm1105_gpio_enable
	movq	_SEC_VOLTAGE_18@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movl	4(%rax,%rcx), %esi
	addq	%rcx, %rax
	addq	$12, %rax
	jmp	LBB0_5
LBB0_2:
	movq	_SEC_VOLTAGE_13@GOTPCREL(%rip), %rdx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%r15), %rax
	movl	4(%rax,%rcx), %esi
	cmpl	%r14d, (%rdx)
	jne	LBB0_4
## %bb.3:
	addq	%rcx, %rax
	addq	$8, %rax
	jmp	LBB0_5
LBB0_4:
	addq	%rcx, %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dm1105_gpio_andor
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm1105_boards,8,3              ## @dm1105_boards
	.comm	_SEC_VOLTAGE_18,4,2             ## @SEC_VOLTAGE_18
	.comm	_SEC_VOLTAGE_13,4,2             ## @SEC_VOLTAGE_13
	.no_dead_strip	_dm1105_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm1105_set_voltage
_dm1105_set_voltage:                    ; @dm1105_set_voltage
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	bl	_frontend_to_dm1105_dev
	mov	x19, x0
Lloh0:
	adrp	x21, _dm1105_boards@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dm1105_boards@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x0]
	add	x8, x8, x9, lsl #4
	ldr	w1, [x8, #4]
	mov	w2, #1
	bl	_dm1105_gpio_enable
Lloh2:
	adrp	x8, _SEC_VOLTAGE_18@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEC_VOLTAGE_18@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #4
	ldr	w1, [x8, #4]
	add	x8, x8, #12
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _SEC_VOLTAGE_13@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEC_VOLTAGE_13@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x21]
	ldr	x10, [x19]
	add	x9, x9, x10, lsl #4
	ldr	w1, [x9, #4]
	cmp	w8, w20
	add	x8, x9, #8
	csel	x8, x9, x8, ne
LBB0_3:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dm1105_gpio_andor
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_dm1105_boards,8,3              ; @dm1105_boards
	.comm	_SEC_VOLTAGE_18,4,2             ; @SEC_VOLTAGE_18
	.comm	_SEC_VOLTAGE_13,4,2             ; @SEC_VOLTAGE_13
	.no_dead_strip	_dm1105_set_voltage
.subsections_via_symbols
