	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt3_set_voltage
_pt3_set_voltage:                       ## @pt3_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	callq	_pt3_find_adapter
	movq	_SEC_VOLTAGE_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%ecx, %ecx
	cmpl	%r13d, %ebx
	setne	%cl
	xorl	%r12d, %r12d
	cmpl	%ecx, (%rax)
	je	LBB0_9
## %bb.1:
	movl	%ecx, (%rax)
	movq	8(%rax), %r15
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_3:
	movl	(%r15), %eax
	cmpl	%r13d, %ebx
	je	LBB0_6
## %bb.4:
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	testl	%eax, %eax
	jg	LBB0_8
## %bb.5:
	movl	$1, %esi
	jmp	LBB0_7
LBB0_6:
	leal	-1(%rax), %ecx
	movl	%ecx, (%r15)
	xorl	%esi, %esi
	cmpl	$1, %eax
	jg	LBB0_8
LBB0_7:
	movl	%esi, (%r15)
	movq	%r15, %rdi
	callq	_pt3_lnb_ctrl
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_VOLTAGE_OFF,4,2            ## @SEC_VOLTAGE_OFF
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_pt3_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt3_set_voltage
_pt3_set_voltage:                       ; @pt3_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	x21, x1
	bl	_pt3_find_adapter
Lloh0:
	adrp	x8, _SEC_VOLTAGE_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEC_VOLTAGE_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cmp	w22, w21
	cset	w8, ne
	ldr	w9, [x0]
	cmp	w9, w8
	b.eq	LBB0_10
; %bb.1:
	str	w8, [x0]
	ldr	x20, [x0, #8]
	add	x19, x20, #4
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_3:
	ldr	w8, [x20]
	cmp	w22, w21
	b.eq	LBB0_6
; %bb.4:
	add	w9, w8, #1
	str	w9, [x20]
	cmp	w8, #1
	b.ge	LBB0_9
; %bb.5:
	mov	w1, #1
	b	LBB0_8
LBB0_6:
	subs	w8, w8, #1
	str	w8, [x20]
	b.gt	LBB0_9
; %bb.7:
	mov	w1, #0
LBB0_8:
	str	w1, [x20]
	mov	x0, x20
	bl	_pt3_lnb_ctrl
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_VOLTAGE_OFF,4,2            ; @SEC_VOLTAGE_OFF
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_pt3_set_voltage
.subsections_via_symbols
