	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcf50633_mbc_irq_handler
_pcf50633_mbc_irq_handler:              ## @pcf50633_mbc_irq_handler
	.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	%rsi, %rbx
	movl	%edi, %r14d
	movq	_PCF50633_IRQ_USBINS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movq	_PCF50633_IRQ_USBREM@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$0, (%rbx)
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_pcf50633_mbc_usb_curlim_set
LBB0_4:
	movq	_PCF50633_IRQ_ADPINS@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	%r14d, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_PCF50633_IRQ_ADPREM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%r14d, (%rcx)
	jne	LBB0_7
LBB0_6:
	movl	%eax, 4(%rbx)
LBB0_7:
	movl	24(%rbx), %edi
	callq	_power_supply_changed
	movl	20(%rbx), %edi
	callq	_power_supply_changed
	movl	16(%rbx), %edi
	callq	_power_supply_changed
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCF50633_IRQ_USBINS,4,2        ## @PCF50633_IRQ_USBINS
	.comm	_PCF50633_IRQ_USBREM,4,2        ## @PCF50633_IRQ_USBREM
	.comm	_PCF50633_IRQ_ADPINS,4,2        ## @PCF50633_IRQ_ADPINS
	.comm	_PCF50633_IRQ_ADPREM,4,2        ## @PCF50633_IRQ_ADPREM
	.no_dead_strip	_pcf50633_mbc_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcf50633_mbc_irq_handler
_pcf50633_mbc_irq_handler:              ; @pcf50633_mbc_irq_handler
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PCF50633_IRQ_USBINS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCF50633_IRQ_USBINS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _PCF50633_IRQ_USBREM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCF50633_IRQ_USBREM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
	str	wzr, [x20]
	ldr	x0, [x20, #8]
	mov	w1, #0
	bl	_pcf50633_mbc_usb_curlim_set
LBB0_4:
Lloh6:
	adrp	x8, _PCF50633_IRQ_ADPINS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCF50633_IRQ_ADPINS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #1
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _PCF50633_IRQ_ADPREM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCF50633_IRQ_ADPREM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.7:
	mov	w8, #0
LBB0_8:
	str	w8, [x20, #4]
LBB0_9:
	ldr	w0, [x20, #24]
	bl	_power_supply_changed
	ldr	w0, [x20, #20]
	bl	_power_supply_changed
	ldr	w0, [x20, #16]
	bl	_power_supply_changed
	ldr	x0, [x20, #8]
	ldr	x8, [x0]
	ldr	x2, [x8]
	cbz	x2, LBB0_11
; %bb.10:
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCF50633_IRQ_USBINS,4,2        ; @PCF50633_IRQ_USBINS
	.comm	_PCF50633_IRQ_USBREM,4,2        ; @PCF50633_IRQ_USBREM
	.comm	_PCF50633_IRQ_ADPINS,4,2        ; @PCF50633_IRQ_ADPINS
	.comm	_PCF50633_IRQ_ADPREM,4,2        ; @PCF50633_IRQ_ADPREM
	.no_dead_strip	_pcf50633_mbc_irq_handler
.subsections_via_symbols
