	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm860x_irq_sync_unlock
_pm860x_irq_sync_unlock:                ## @pm860x_irq_sync_unlock
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_irq_data_get_irq_chip_data
	movq	(%rax), %rsi
	movq	_CHIP_PM8607@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rsi
	sete	%dl
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax,%rdx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movb	_pm860x_irq_sync_unlock.cached.0(%rip), %r14b
	movb	_pm860x_irq_sync_unlock.cached.1(%rip), %bl
	movb	_pm860x_irq_sync_unlock.cached.2(%rip), %r13b
	movq	_pm860x_irqs@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	4(%rdi,%r12,8), %eax
	notb	%al
	andb	%al, %bl
	orb	5(%rdi,%r12,8), %bl
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rdi,%r12,8), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	4(%rdi,%r12,8), %eax
	notb	%al
	andb	%al, %r14b
	orb	5(%rdi,%r12,8), %r14b
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	4(%rdi,%r12,8), %eax
	notb	%al
	andb	%al, %r13b
	orb	5(%rdi,%r12,8), %r13b
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	(%r15), %rdi
	jmp	LBB0_9
LBB0_10:
	cmpb	_pm860x_irq_sync_unlock.cached.0(%rip), %r14b
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_11
## %bb.12:
	cmpb	_pm860x_irq_sync_unlock.cached.1(%rip), %bl
	jne	LBB0_13
LBB0_14:
	cmpb	_pm860x_irq_sync_unlock.cached.2(%rip), %r13b
	je	LBB0_16
LBB0_15:
	movb	%r13b, _pm860x_irq_sync_unlock.cached.2(%rip)
	movzbl	%r13b, %edx
	movq	%r15, %rdi
	movl	$132, %esi
	callq	_pm860x_reg_write
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_11:
	movb	%r14b, _pm860x_irq_sync_unlock.cached.0(%rip)
	movzbl	%r14b, %edx
	movq	%r15, %rdi
	movl	$130, %esi
	callq	_pm860x_reg_write
	cmpb	_pm860x_irq_sync_unlock.cached.1(%rip), %bl
	je	LBB0_14
LBB0_13:
	movb	%bl, _pm860x_irq_sync_unlock.cached.1(%rip)
	movzbl	%bl, %edx
	movq	%r15, %rdi
	movl	$131, %esi
	callq	_pm860x_reg_write
	cmpb	_pm860x_irq_sync_unlock.cached.2(%rip), %r13b
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_pm860x_irq_sync_unlock.cached.0,1,0 ## @pm860x_irq_sync_unlock.cached.0
.zerofill __DATA,__bss,_pm860x_irq_sync_unlock.cached.1,1,0 ## @pm860x_irq_sync_unlock.cached.1
.zerofill __DATA,__bss,_pm860x_irq_sync_unlock.cached.2,1,0 ## @pm860x_irq_sync_unlock.cached.2
	.comm	_CHIP_PM8607,8,3                ## @CHIP_PM8607
	.comm	_pm860x_irqs,8,3                ## @pm860x_irqs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong IRQ\n"

	.no_dead_strip	_pm860x_irq_sync_unlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm860x_irq_sync_unlock
_pm860x_irq_sync_unlock:                ; @pm860x_irq_sync_unlock
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_irq_data_get_irq_chip_data
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHIP_PM8607@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_PM8607@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #16
	mov	w11, #24
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x20, [x0, x8]
	adrp	x26, _pm860x_irq_sync_unlock.cached.0@PAGE
	ldrb	w27, [x26, _pm860x_irq_sync_unlock.cached.0@PAGEOFF]
Lloh3:
	adrp	x8, _pm860x_irq_sync_unlock.cached.1@PAGE
	ldrb	w25, [x8, _pm860x_irq_sync_unlock.cached.1@PAGEOFF]
Lloh4:
	adrp	x8, _pm860x_irq_sync_unlock.cached.2@PAGE
	ldrb	w23, [x8, _pm860x_irq_sync_unlock.cached.2@PAGEOFF]
Lloh5:
	adrp	x28, _pm860x_irqs@GOTPAGE
Lloh6:
	ldr	x28, [x28, _pm860x_irqs@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, #0
	mov	x24, #0
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x0, x22
	ldrb	w9, [x8, #4]
	bic	w9, w25, w9
	ldrb	w8, [x8, #5]
	orr	w25, w8, w9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	cmp	x24, w0, sxtw
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x28]
	ldr	w8, [x0, x22]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #129
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x0, x22
	ldrb	w9, [x8, #4]
	bic	w9, w27, w9
	ldrb	w8, [x8, #5]
	orr	w27, w8, w9
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x0, x22
	ldrb	w9, [x8, #4]
	bic	w9, w23, w9
	ldrb	w8, [x8, #5]
	orr	w23, w8, w9
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_dev_err
	ldr	x0, [x28]
	b	LBB0_3
LBB0_10:
	ldrb	w8, [x26, _pm860x_irq_sync_unlock.cached.0@PAGEOFF]
	cmp	w8, w27, uxtb
	b.eq	LBB0_12
; %bb.11:
	strb	w27, [x26, _pm860x_irq_sync_unlock.cached.0@PAGEOFF]
	and	w2, w27, #0xff
	mov	x0, x20
	mov	w1, #130
	bl	_pm860x_reg_write
LBB0_12:
	adrp	x9, _pm860x_irq_sync_unlock.cached.1@PAGE
	ldrb	w8, [x9, _pm860x_irq_sync_unlock.cached.1@PAGEOFF]
	cmp	w8, w25, uxtb
	b.eq	LBB0_14
; %bb.13:
	strb	w25, [x9, _pm860x_irq_sync_unlock.cached.1@PAGEOFF]
	and	w2, w25, #0xff
	mov	x0, x20
	mov	w1, #131
	bl	_pm860x_reg_write
LBB0_14:
	adrp	x9, _pm860x_irq_sync_unlock.cached.2@PAGE
	ldrb	w8, [x9, _pm860x_irq_sync_unlock.cached.2@PAGEOFF]
	cmp	w8, w23, uxtb
	b.eq	LBB0_16
; %bb.15:
	strb	w23, [x9, _pm860x_irq_sync_unlock.cached.2@PAGEOFF]
	and	w2, w23, #0xff
	mov	x0, x20
	mov	w1, #132
	bl	_pm860x_reg_write
LBB0_16:
	add	x0, x19, #8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_pm860x_irq_sync_unlock.cached.0,1,0 ; @pm860x_irq_sync_unlock.cached.0
.zerofill __DATA,__bss,_pm860x_irq_sync_unlock.cached.1,1,0 ; @pm860x_irq_sync_unlock.cached.1
.zerofill __DATA,__bss,_pm860x_irq_sync_unlock.cached.2,1,0 ; @pm860x_irq_sync_unlock.cached.2
	.comm	_CHIP_PM8607,8,3                ; @CHIP_PM8607
	.comm	_pm860x_irqs,8,3                ; @pm860x_irqs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong IRQ\n"

	.no_dead_strip	_pm860x_irq_sync_unlock
.subsections_via_symbols
