	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8153b_ups_flags
_r8153b_ups_flags:                      ## @r8153b_ups_flags
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%r8d, %r8d
	cmpq	$0, 88(%rdi)
	movl	$0, %r9d
	je	LBB0_2
## %bb.1:
	movq	_UPS_FLAGS_EN_GREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
LBB0_2:
	cmpq	$0, 80(%rbx)
	movl	$0, %r14d
	je	LBB0_4
## %bb.3:
	movq	_UPS_FLAGS_EN_ALDPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	cmpq	$0, 72(%rbx)
	movl	$0, %edx
	je	LBB0_6
## %bb.5:
	movq	_UPS_FLAGS_EN_EEE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_6:
	cmpq	$0, 64(%rbx)
	movl	$0, %r10d
	je	LBB0_8
## %bb.7:
	movq	_UPS_FLAGS_EN_FLOW_CTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
LBB0_8:
	cmpq	$0, 56(%rbx)
	movl	$0, %esi
	je	LBB0_10
## %bb.9:
	movq	_UPS_FLAGS_EN_EEE_CKDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_10:
	cmpq	$0, 48(%rbx)
	movl	$0, %eax
	je	LBB0_12
## %bb.11:
	movq	_UPS_FLAGS_EEE_CMOD_LV_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	cmpq	$0, 40(%rbx)
	movl	$0, %ecx
	je	LBB0_14
## %bb.13:
	movq	_UPS_FLAGS_EN_10M_CKDIV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_14:
	cmpq	$0, 32(%rbx)
	movl	$0, %edi
	je	LBB0_16
## %bb.15:
	movq	_UPS_FLAGS_EEE_PLLOFF_100@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
LBB0_16:
	orl	%r9d, %r14d
	orl	%r10d, %edx
	orl	%eax, %esi
	cmpq	$0, 24(%rbx)
	movl	$0, %eax
	je	LBB0_18
## %bb.17:
	movq	_UPS_FLAGS_EEE_PLLOFF_GIGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	orl	%eax, %edi
	orl	%edx, %r14d
	orl	%ecx, %esi
	cmpq	$0, 16(%rbx)
	movl	$0, %eax
	je	LBB0_20
## %bb.19:
	movq	_UPS_FLAGS_250M_CKDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	orl	%eax, %edi
	orl	%esi, %r14d
	cmpq	$0, 8(%rbx)
	je	LBB0_22
## %bb.21:
	movq	_UPS_FLAGS_CTAP_SHORT_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_22:
	orl	%r8d, %edi
	orl	%edi, %r14d
	movl	(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$8, %eax
	ja	LBB0_24
## %bb.23:
	addl	$-127, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ups_flags_speed
	orl	%eax, %r14d
LBB0_24:
	movq	_MCU_TYPE_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USB_UPS_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ocp_write_dword                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UPS_FLAGS_EN_GREEN,4,2         ## @UPS_FLAGS_EN_GREEN
	.comm	_UPS_FLAGS_EN_ALDPS,4,2         ## @UPS_FLAGS_EN_ALDPS
	.comm	_UPS_FLAGS_EN_EEE,4,2           ## @UPS_FLAGS_EN_EEE
	.comm	_UPS_FLAGS_EN_FLOW_CTR,4,2      ## @UPS_FLAGS_EN_FLOW_CTR
	.comm	_UPS_FLAGS_EN_EEE_CKDIV,4,2     ## @UPS_FLAGS_EN_EEE_CKDIV
	.comm	_UPS_FLAGS_EEE_CMOD_LV_EN,4,2   ## @UPS_FLAGS_EEE_CMOD_LV_EN
	.comm	_UPS_FLAGS_EN_10M_CKDIV,4,2     ## @UPS_FLAGS_EN_10M_CKDIV
	.comm	_UPS_FLAGS_EEE_PLLOFF_100,4,2   ## @UPS_FLAGS_EEE_PLLOFF_100
	.comm	_UPS_FLAGS_EEE_PLLOFF_GIGA,4,2  ## @UPS_FLAGS_EEE_PLLOFF_GIGA
	.comm	_UPS_FLAGS_250M_CKDIV,4,2       ## @UPS_FLAGS_250M_CKDIV
	.comm	_UPS_FLAGS_CTAP_SHORT_DIS,4,2   ## @UPS_FLAGS_CTAP_SHORT_DIS
	.comm	_MCU_TYPE_USB,4,2               ## @MCU_TYPE_USB
	.comm	_USB_UPS_FLAGS,4,2              ## @USB_UPS_FLAGS
	.no_dead_strip	_r8153b_ups_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8153b_ups_flags
_r8153b_ups_flags:                      ; @r8153b_ups_flags
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x10, x8, [x0, #80]
Lloh0:
	adrp	x9, _UPS_FLAGS_EN_GREEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UPS_FLAGS_EN_GREEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
Lloh3:
	adrp	x8, _UPS_FLAGS_EN_ALDPS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UPS_FLAGS_EN_ALDPS@GOTPAGEOFF]
	csel	w9, wzr, w9, eq
Lloh5:
	ldr	w8, [x8]
	ldr	x11, [x0, #72]
	cmp	x10, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _UPS_FLAGS_EN_EEE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UPS_FLAGS_EN_EEE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _UPS_FLAGS_EN_FLOW_CTR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UPS_FLAGS_EN_FLOW_CTR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldp	x11, x10, [x0, #56]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _UPS_FLAGS_EN_EEE_CKDIV@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UPS_FLAGS_EN_EEE_CKDIV@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _UPS_FLAGS_EEE_CMOD_LV_EN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _UPS_FLAGS_EEE_CMOD_LV_EN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldp	x11, x10, [x0, #40]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
Lloh18:
	adrp	x10, _UPS_FLAGS_EN_10M_CKDIV@GOTPAGE
Lloh19:
	ldr	x10, [x10, _UPS_FLAGS_EN_10M_CKDIV@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh20:
	ldr	w9, [x10]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
	ldp	x10, x9, [x0, #24]
	cmp	x9, #0
Lloh21:
	adrp	x9, _UPS_FLAGS_EEE_PLLOFF_100@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UPS_FLAGS_EEE_PLLOFF_100@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _UPS_FLAGS_EEE_PLLOFF_GIGA@GOTPAGE
Lloh25:
	ldr	x9, [x9, _UPS_FLAGS_EEE_PLLOFF_GIGA@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
	ldp	x10, x9, [x0, #8]
	cmp	x9, #0
Lloh27:
	adrp	x9, _UPS_FLAGS_250M_CKDIV@GOTPAGE
Lloh28:
	ldr	x9, [x9, _UPS_FLAGS_250M_CKDIV@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _UPS_FLAGS_CTAP_SHORT_DIS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _UPS_FLAGS_CTAP_SHORT_DIS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w20, w8, w9
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #8
	b.hi	LBB0_2
; %bb.1:
	sub	w0, w8, #127
	bl	_ups_flags_speed
	orr	w20, w0, w20
LBB0_2:
Lloh33:
	adrp	x8, _MCU_TYPE_USB@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MCU_TYPE_USB@GOTPAGEOFF]
Lloh35:
	adrp	x9, _USB_UPS_FLAGS@GOTPAGE
Lloh36:
	ldr	x9, [x9, _USB_UPS_FLAGS@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ocp_write_dword
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_UPS_FLAGS_EN_GREEN,4,2         ; @UPS_FLAGS_EN_GREEN
	.comm	_UPS_FLAGS_EN_ALDPS,4,2         ; @UPS_FLAGS_EN_ALDPS
	.comm	_UPS_FLAGS_EN_EEE,4,2           ; @UPS_FLAGS_EN_EEE
	.comm	_UPS_FLAGS_EN_FLOW_CTR,4,2      ; @UPS_FLAGS_EN_FLOW_CTR
	.comm	_UPS_FLAGS_EN_EEE_CKDIV,4,2     ; @UPS_FLAGS_EN_EEE_CKDIV
	.comm	_UPS_FLAGS_EEE_CMOD_LV_EN,4,2   ; @UPS_FLAGS_EEE_CMOD_LV_EN
	.comm	_UPS_FLAGS_EN_10M_CKDIV,4,2     ; @UPS_FLAGS_EN_10M_CKDIV
	.comm	_UPS_FLAGS_EEE_PLLOFF_100,4,2   ; @UPS_FLAGS_EEE_PLLOFF_100
	.comm	_UPS_FLAGS_EEE_PLLOFF_GIGA,4,2  ; @UPS_FLAGS_EEE_PLLOFF_GIGA
	.comm	_UPS_FLAGS_250M_CKDIV,4,2       ; @UPS_FLAGS_250M_CKDIV
	.comm	_UPS_FLAGS_CTAP_SHORT_DIS,4,2   ; @UPS_FLAGS_CTAP_SHORT_DIS
	.comm	_MCU_TYPE_USB,4,2               ; @MCU_TYPE_USB
	.comm	_USB_UPS_FLAGS,4,2              ; @USB_UPS_FLAGS
	.no_dead_strip	_r8153b_ups_flags
.subsections_via_symbols
