	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcf50633_mbc_get_status        ## -- Begin function pcf50633_mbc_get_status
	.p2align	4, 0x90
_pcf50633_mbc_get_status:               ## @pcf50633_mbc_get_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %edi
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	16(%rax), %edi
	movq	_PCF50633_REG_MBCS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pcf50633_reg_read
	movl	%eax, %ecx
	movq	_PCF50633_MBCS2_MBC_MASK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	$0, %esi
	andl	(%rdx), %ecx
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_PCF50633_MBC_USB_ONLINE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_4:
	movq	_PCF50633_MBCS2_MBC_USB_PRE@GOTPCREL(%rip), %r8
	movq	_PCF50633_MBCS2_MBC_USB_PRE_WAIT@GOTPCREL(%rip), %r9
	movq	_PCF50633_MBCS2_MBC_USB_FAST@GOTPCREL(%rip), %r10
	movq	_PCF50633_MBCS2_MBC_USB_FAST_WAIT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movq	_PCF50633_MBC_USB_ACTIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	$0, %edx
	cmovel	%edi, %edx
	cmpl	(%r10), %ecx
	cmovel	%edi, %edx
	cmpl	(%r9), %ecx
	cmovel	%edi, %edx
	cmpl	(%r8), %ecx
	cmovel	%edi, %edx
	cmpq	$0, (%rbx)
	movl	$0, %edi
	je	LBB0_6
## %bb.5:
	movq	_PCF50633_MBC_ADAPTER_ONLINE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
LBB0_6:
	orl	%edi, %esi
	orl	%esi, %edx
	movq	_PCF50633_MBCS2_MBC_ADP_PRE@GOTPCREL(%rip), %r8
	movq	_PCF50633_MBCS2_MBC_ADP_PRE_WAIT@GOTPCREL(%rip), %rdi
	movq	_PCF50633_MBCS2_MBC_ADP_FAST@GOTPCREL(%rip), %rbx
	movq	_PCF50633_MBCS2_MBC_ADP_FAST_WAIT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	movq	_PCF50633_MBC_ADAPTER_ACTIVE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmovel	%esi, %eax
	cmpl	(%rbx), %ecx
	cmovel	%esi, %eax
	cmpl	(%rdi), %ecx
	cmovel	%esi, %eax
	cmpl	(%r8), %ecx
	cmovel	%esi, %eax
	orl	%edx, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCF50633_REG_MBCS2,4,2         ## @PCF50633_REG_MBCS2
	.comm	_PCF50633_MBCS2_MBC_MASK,4,2    ## @PCF50633_MBCS2_MBC_MASK
	.comm	_PCF50633_MBC_USB_ONLINE,4,2    ## @PCF50633_MBC_USB_ONLINE
	.comm	_PCF50633_MBCS2_MBC_USB_PRE,4,2 ## @PCF50633_MBCS2_MBC_USB_PRE
	.comm	_PCF50633_MBCS2_MBC_USB_PRE_WAIT,4,2 ## @PCF50633_MBCS2_MBC_USB_PRE_WAIT
	.comm	_PCF50633_MBCS2_MBC_USB_FAST,4,2 ## @PCF50633_MBCS2_MBC_USB_FAST
	.comm	_PCF50633_MBCS2_MBC_USB_FAST_WAIT,4,2 ## @PCF50633_MBCS2_MBC_USB_FAST_WAIT
	.comm	_PCF50633_MBC_USB_ACTIVE,4,2    ## @PCF50633_MBC_USB_ACTIVE
	.comm	_PCF50633_MBC_ADAPTER_ONLINE,4,2 ## @PCF50633_MBC_ADAPTER_ONLINE
	.comm	_PCF50633_MBCS2_MBC_ADP_PRE,4,2 ## @PCF50633_MBCS2_MBC_ADP_PRE
	.comm	_PCF50633_MBCS2_MBC_ADP_PRE_WAIT,4,2 ## @PCF50633_MBCS2_MBC_ADP_PRE_WAIT
	.comm	_PCF50633_MBCS2_MBC_ADP_FAST,4,2 ## @PCF50633_MBCS2_MBC_ADP_FAST
	.comm	_PCF50633_MBCS2_MBC_ADP_FAST_WAIT,4,2 ## @PCF50633_MBCS2_MBC_ADP_FAST_WAIT
	.comm	_PCF50633_MBC_ADAPTER_ACTIVE,4,2 ## @PCF50633_MBC_ADAPTER_ACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcf50633_mbc_get_status        ; -- Begin function pcf50633_mbc_get_status
	.p2align	2
_pcf50633_mbc_get_status:               ; @pcf50633_mbc_get_status
	.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
	ldr	w0, [x0]
	bl	_platform_get_drvdata
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _PCF50633_REG_MBCS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCF50633_REG_MBCS2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pcf50633_reg_read
Lloh3:
	adrp	x8, _PCF50633_MBCS2_MBC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCF50633_MBCS2_MBC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PCF50633_MBC_USB_ONLINE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCF50633_MBC_USB_ONLINE@GOTPAGEOFF]
	and	w8, w8, w0
Lloh8:
	ldr	w9, [x9]
	ldp	x11, x10, [x19]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
Lloh9:
	adrp	x10, _PCF50633_MBCS2_MBC_USB_PRE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PCF50633_MBCS2_MBC_USB_PRE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x12, _PCF50633_MBCS2_MBC_USB_PRE_WAIT@GOTPAGE
Lloh13:
	ldr	x12, [x12, _PCF50633_MBCS2_MBC_USB_PRE_WAIT@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
Lloh15:
	adrp	x13, _PCF50633_MBCS2_MBC_USB_FAST@GOTPAGE
Lloh16:
	ldr	x13, [x13, _PCF50633_MBCS2_MBC_USB_FAST@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
Lloh18:
	adrp	x14, _PCF50633_MBCS2_MBC_USB_FAST_WAIT@GOTPAGE
Lloh19:
	ldr	x14, [x14, _PCF50633_MBCS2_MBC_USB_FAST_WAIT@GOTPAGEOFF]
Lloh20:
	ldr	w14, [x14]
	cmp	w8, w14
	ccmp	w8, w13, #4, ne
	ccmp	w8, w12, #4, ne
	ccmp	w8, w10, #4, ne
Lloh21:
	adrp	x10, _PCF50633_MBC_USB_ACTIVE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PCF50633_MBC_USB_ACTIVE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	csel	w10, w10, wzr, eq
	orr	w9, w10, w9
Lloh24:
	adrp	x10, _PCF50633_MBC_ADAPTER_ONLINE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PCF50633_MBC_ADAPTER_ONLINE@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	cmp	x11, #0
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh27:
	adrp	x10, _PCF50633_MBCS2_MBC_ADP_PRE@GOTPAGE
Lloh28:
	ldr	x10, [x10, _PCF50633_MBCS2_MBC_ADP_PRE@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
Lloh30:
	adrp	x11, _PCF50633_MBCS2_MBC_ADP_PRE_WAIT@GOTPAGE
Lloh31:
	ldr	x11, [x11, _PCF50633_MBCS2_MBC_ADP_PRE_WAIT@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
Lloh33:
	adrp	x12, _PCF50633_MBCS2_MBC_ADP_FAST@GOTPAGE
Lloh34:
	ldr	x12, [x12, _PCF50633_MBCS2_MBC_ADP_FAST@GOTPAGEOFF]
Lloh35:
	ldr	w12, [x12]
Lloh36:
	adrp	x13, _PCF50633_MBCS2_MBC_ADP_FAST_WAIT@GOTPAGE
Lloh37:
	ldr	x13, [x13, _PCF50633_MBCS2_MBC_ADP_FAST_WAIT@GOTPAGEOFF]
Lloh38:
	ldr	w13, [x13]
	cmp	w8, w13
	ccmp	w8, w12, #4, ne
	ccmp	w8, w11, #4, ne
	ccmp	w8, w10, #4, ne
Lloh39:
	adrp	x8, _PCF50633_MBC_ADAPTER_ACTIVE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PCF50633_MBC_ADAPTER_ACTIVE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	csel	w8, w8, wzr, eq
	orr	w0, w9, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_PCF50633_REG_MBCS2,4,2         ; @PCF50633_REG_MBCS2
	.comm	_PCF50633_MBCS2_MBC_MASK,4,2    ; @PCF50633_MBCS2_MBC_MASK
	.comm	_PCF50633_MBC_USB_ONLINE,4,2    ; @PCF50633_MBC_USB_ONLINE
	.comm	_PCF50633_MBCS2_MBC_USB_PRE,4,2 ; @PCF50633_MBCS2_MBC_USB_PRE
	.comm	_PCF50633_MBCS2_MBC_USB_PRE_WAIT,4,2 ; @PCF50633_MBCS2_MBC_USB_PRE_WAIT
	.comm	_PCF50633_MBCS2_MBC_USB_FAST,4,2 ; @PCF50633_MBCS2_MBC_USB_FAST
	.comm	_PCF50633_MBCS2_MBC_USB_FAST_WAIT,4,2 ; @PCF50633_MBCS2_MBC_USB_FAST_WAIT
	.comm	_PCF50633_MBC_USB_ACTIVE,4,2    ; @PCF50633_MBC_USB_ACTIVE
	.comm	_PCF50633_MBC_ADAPTER_ONLINE,4,2 ; @PCF50633_MBC_ADAPTER_ONLINE
	.comm	_PCF50633_MBCS2_MBC_ADP_PRE,4,2 ; @PCF50633_MBCS2_MBC_ADP_PRE
	.comm	_PCF50633_MBCS2_MBC_ADP_PRE_WAIT,4,2 ; @PCF50633_MBCS2_MBC_ADP_PRE_WAIT
	.comm	_PCF50633_MBCS2_MBC_ADP_FAST,4,2 ; @PCF50633_MBCS2_MBC_ADP_FAST
	.comm	_PCF50633_MBCS2_MBC_ADP_FAST_WAIT,4,2 ; @PCF50633_MBCS2_MBC_ADP_FAST_WAIT
	.comm	_PCF50633_MBC_ADAPTER_ACTIVE,4,2 ; @PCF50633_MBC_ADAPTER_ACTIVE
.subsections_via_symbols
