	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yenta_set_power
_yenta_set_power:                       ## @yenta_set_power
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_CB_SOCKET_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cb_readl
	movq	_CB_CBCARD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_20:
	movl	(%r15), %eax
	cmpl	$50, %eax
	je	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
	cmpl	$33, %eax
	jne	LBB0_25
## %bb.22:
	movq	_CB_SC_VCC_3V@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_1:
	movq	_YENTA_16BIT_POWER_EXCA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_20
## %bb.2:
	movq	_I365_POWER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_exca_readb
	movq	_I365_VCC_MASK@GOTPCREL(%rip), %rdx
	movq	_I365_VPP1_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_I365_VPP2_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_YENTA_16BIT_POWER_DF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%r15), %esi
	testl	%edx, (%r14)
	je	LBB0_13
## %bb.3:
	cmpl	$50, %esi
	je	LBB0_6
## %bb.4:
	xorl	%edx, %edx
	cmpl	$33, %esi
	jne	LBB0_8
## %bb.5:
	movq	_I365_VCC_3V@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_23:
	movq	_CB_SC_VCC_5V@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %ebx
LBB0_25:
	movl	4(%r15), %eax
	cmpl	$120, %eax
	je	LBB0_30
## %bb.26:
	cmpl	$50, %eax
	je	LBB0_29
## %bb.27:
	cmpl	$33, %eax
	jne	LBB0_32
## %bb.28:
	movq	_CB_SC_VPP_3V@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_30:
	movq	_CB_SC_VPP_12V@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_29:
	movq	_CB_SC_VPP_5V@GOTPCREL(%rip), %rax
LBB0_31:
	orl	(%rax), %ebx
LBB0_32:
	movq	_CB_SOCKET_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_cb_readl
	cmpl	%eax, %ebx
	je	LBB0_33
## %bb.34:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cb_writel                      ## TAILCALL
LBB0_13:
	movq	_I365_VCC_5V@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	xorl	%edx, %edx
	cmpl	$50, %esi
	cmovel	%ecx, %edx
	movl	4(%r15), %ecx
	cmpl	$120, %ecx
	je	LBB0_16
## %bb.14:
	cmpl	$50, %ecx
	jne	LBB0_18
## %bb.15:
	movq	_I365_VPP1_5V@GOTPCREL(%rip), %rcx
	movq	_I365_VPP2_5V@GOTPCREL(%rip), %rsi
	jmp	LBB0_17
LBB0_6:
	movq	_I365_VCC_5V@GOTPCREL(%rip), %rdx
LBB0_7:
	orl	(%rdx), %ecx
	movl	%ecx, %edx
LBB0_8:
	movl	4(%r15), %ecx
	cmpl	$33, %ecx
	je	LBB0_11
## %bb.9:
	cmpl	$120, %ecx
	je	LBB0_12
## %bb.10:
	cmpl	$50, %ecx
	jne	LBB0_18
LBB0_11:
	movq	_I365_VPP1_5V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	cmpl	%eax, %edx
	je	LBB0_33
	jmp	LBB0_19
LBB0_12:
	movq	_I365_VPP1_12V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
LBB0_18:
	cmpl	%eax, %edx
	jne	LBB0_19
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_I365_VPP1_12V@GOTPCREL(%rip), %rcx
	movq	_I365_VPP2_12V@GOTPCREL(%rip), %rsi
LBB0_17:
	orl	(%rcx), %edx
	orl	(%rsi), %edx
	cmpl	%eax, %edx
	je	LBB0_33
LBB0_19:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exca_writeb                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CB_SOCKET_STATE,4,2            ## @CB_SOCKET_STATE
	.comm	_CB_CBCARD,4,2                  ## @CB_CBCARD
	.comm	_YENTA_16BIT_POWER_EXCA,4,2     ## @YENTA_16BIT_POWER_EXCA
	.comm	_I365_POWER,4,2                 ## @I365_POWER
	.comm	_I365_VCC_MASK,4,2              ## @I365_VCC_MASK
	.comm	_I365_VPP1_MASK,4,2             ## @I365_VPP1_MASK
	.comm	_I365_VPP2_MASK,4,2             ## @I365_VPP2_MASK
	.comm	_YENTA_16BIT_POWER_DF,4,2       ## @YENTA_16BIT_POWER_DF
	.comm	_I365_VCC_3V,4,2                ## @I365_VCC_3V
	.comm	_I365_VCC_5V,4,2                ## @I365_VCC_5V
	.comm	_I365_VPP1_5V,4,2               ## @I365_VPP1_5V
	.comm	_I365_VPP1_12V,4,2              ## @I365_VPP1_12V
	.comm	_I365_VPP2_5V,4,2               ## @I365_VPP2_5V
	.comm	_I365_VPP2_12V,4,2              ## @I365_VPP2_12V
	.comm	_CB_SC_VCC_3V,4,2               ## @CB_SC_VCC_3V
	.comm	_CB_SC_VCC_5V,4,2               ## @CB_SC_VCC_5V
	.comm	_CB_SC_VPP_3V,4,2               ## @CB_SC_VPP_3V
	.comm	_CB_SC_VPP_5V,4,2               ## @CB_SC_VPP_5V
	.comm	_CB_SC_VPP_12V,4,2              ## @CB_SC_VPP_12V
	.comm	_CB_SOCKET_CONTROL,4,2          ## @CB_SOCKET_CONTROL
	.no_dead_strip	_yenta_set_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yenta_set_power
_yenta_set_power:                       ; @yenta_set_power
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CB_SOCKET_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CB_SOCKET_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cb_readl
Lloh3:
	adrp	x8, _CB_CBCARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CB_CBCARD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
LBB0_1:
	ldr	w8, [x20]
	cmp	w8, #50
	b.eq	LBB0_9
; %bb.2:
	cmp	w8, #33
	b.ne	LBB0_11
; %bb.3:
Lloh6:
	adrp	x8, _CB_SC_VCC_3V@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CB_SC_VCC_3V@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _YENTA_16BIT_POWER_EXCA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _YENTA_16BIT_POWER_EXCA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.5:
Lloh11:
	adrp	x21, _I365_POWER@GOTPAGE
Lloh12:
	ldr	x21, [x21, _I365_POWER@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_exca_readb
Lloh13:
	adrp	x8, _I365_VCC_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I365_VCC_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _I365_VPP1_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _I365_VPP1_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _I365_VPP2_MASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _I365_VPP2_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w8, w0, w8
	ldr	w10, [x19]
Lloh22:
	adrp	x9, _YENTA_16BIT_POWER_DF@GOTPAGE
Lloh23:
	ldr	x9, [x9, _YENTA_16BIT_POWER_DF@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x9]
	ldr	w9, [x20]
	tst	w11, w10
	b.eq	LBB0_21
; %bb.6:
	cmp	w9, #50
	b.eq	LBB0_24
; %bb.7:
	cmp	w9, #33
	b.ne	LBB0_26
; %bb.8:
Lloh25:
	adrp	x9, _I365_VCC_3V@GOTPAGE
Lloh26:
	ldr	x9, [x9, _I365_VCC_3V@GOTPAGEOFF]
	b	LBB0_25
LBB0_9:
Lloh27:
	adrp	x8, _CB_SC_VCC_5V@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CB_SC_VCC_5V@GOTPAGEOFF]
LBB0_10:
	ldr	w21, [x8]
	b	LBB0_12
LBB0_11:
	mov	w21, #0
LBB0_12:
	ldr	w8, [x20, #4]
	cmp	w8, #120
	b.eq	LBB0_16
; %bb.13:
	cmp	w8, #50
	b.eq	LBB0_17
; %bb.14:
	cmp	w8, #33
	b.ne	LBB0_19
; %bb.15:
Lloh29:
	adrp	x8, _CB_SC_VPP_3V@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CB_SC_VPP_3V@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh31:
	adrp	x8, _CB_SC_VPP_12V@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CB_SC_VPP_12V@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh33:
	adrp	x8, _CB_SC_VPP_5V@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CB_SC_VPP_5V@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_19:
Lloh35:
	adrp	x20, _CB_SOCKET_CONTROL@GOTPAGE
Lloh36:
	ldr	x20, [x20, _CB_SOCKET_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cb_readl
	cmp	w21, w0
	b.eq	LBB0_34
; %bb.20:
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, x21
	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
	b	_cb_writel
LBB0_21:
Lloh37:
	adrp	x10, _I365_VCC_5V@GOTPAGE
Lloh38:
	ldr	x10, [x10, _I365_VCC_5V@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w8, w10, w8
	cmp	w9, #50
	csel	w2, w8, wzr, eq
	ldr	w8, [x20, #4]
	cmp	w8, #120
	b.eq	LBB0_35
; %bb.22:
	cmp	w8, #50
	b.ne	LBB0_33
; %bb.23:
Lloh40:
	adrp	x8, _I365_VPP1_5V@GOTPAGE
Lloh41:
	ldr	x8, [x8, _I365_VPP1_5V@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _I365_VPP2_5V@GOTPAGE
Lloh44:
	ldr	x9, [x9, _I365_VPP2_5V@GOTPAGEOFF]
	b	LBB0_36
LBB0_24:
Lloh45:
	adrp	x9, _I365_VCC_5V@GOTPAGE
Lloh46:
	ldr	x9, [x9, _I365_VCC_5V@GOTPAGEOFF]
LBB0_25:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_27
LBB0_26:
	mov	w2, #0
LBB0_27:
	ldr	w8, [x20, #4]
	cmp	w8, #33
	b.eq	LBB0_30
; %bb.28:
	cmp	w8, #120
	b.eq	LBB0_31
; %bb.29:
	cmp	w8, #50
	b.ne	LBB0_33
LBB0_30:
Lloh47:
	adrp	x8, _I365_VPP1_5V@GOTPAGE
Lloh48:
	ldr	x8, [x8, _I365_VPP1_5V@GOTPAGEOFF]
	b	LBB0_32
LBB0_31:
Lloh49:
	adrp	x8, _I365_VPP1_12V@GOTPAGE
Lloh50:
	ldr	x8, [x8, _I365_VPP1_12V@GOTPAGEOFF]
LBB0_32:
	ldr	w8, [x8]
	orr	w2, w8, w2
LBB0_33:
	cmp	w2, w0
	b.ne	LBB0_37
LBB0_34:
	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
LBB0_35:
Lloh51:
	adrp	x8, _I365_VPP1_12V@GOTPAGE
Lloh52:
	ldr	x8, [x8, _I365_VPP1_12V@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _I365_VPP2_12V@GOTPAGE
Lloh55:
	ldr	x9, [x9, _I365_VPP2_12V@GOTPAGEOFF]
LBB0_36:
	ldr	w9, [x9]
	orr	w8, w8, w2
	orr	w2, w8, w9
	cmp	w2, w0
	b.eq	LBB0_34
LBB0_37:
	ldr	w1, [x21]
	mov	x0, x19
	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
	b	_exca_writeb
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_CB_SOCKET_STATE,4,2            ; @CB_SOCKET_STATE
	.comm	_CB_CBCARD,4,2                  ; @CB_CBCARD
	.comm	_YENTA_16BIT_POWER_EXCA,4,2     ; @YENTA_16BIT_POWER_EXCA
	.comm	_I365_POWER,4,2                 ; @I365_POWER
	.comm	_I365_VCC_MASK,4,2              ; @I365_VCC_MASK
	.comm	_I365_VPP1_MASK,4,2             ; @I365_VPP1_MASK
	.comm	_I365_VPP2_MASK,4,2             ; @I365_VPP2_MASK
	.comm	_YENTA_16BIT_POWER_DF,4,2       ; @YENTA_16BIT_POWER_DF
	.comm	_I365_VCC_3V,4,2                ; @I365_VCC_3V
	.comm	_I365_VCC_5V,4,2                ; @I365_VCC_5V
	.comm	_I365_VPP1_5V,4,2               ; @I365_VPP1_5V
	.comm	_I365_VPP1_12V,4,2              ; @I365_VPP1_12V
	.comm	_I365_VPP2_5V,4,2               ; @I365_VPP2_5V
	.comm	_I365_VPP2_12V,4,2              ; @I365_VPP2_12V
	.comm	_CB_SC_VCC_3V,4,2               ; @CB_SC_VCC_3V
	.comm	_CB_SC_VCC_5V,4,2               ; @CB_SC_VCC_5V
	.comm	_CB_SC_VPP_3V,4,2               ; @CB_SC_VPP_3V
	.comm	_CB_SC_VPP_5V,4,2               ; @CB_SC_VPP_5V
	.comm	_CB_SC_VPP_12V,4,2              ; @CB_SC_VPP_12V
	.comm	_CB_SOCKET_CONTROL,4,2          ; @CB_SOCKET_CONTROL
	.no_dead_strip	_yenta_set_power
.subsections_via_symbols
