	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_irq_get_irqchip_state
_pm8xxx_irq_get_irqchip_state:          ## @pm8xxx_irq_get_irqchip_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_irqd_to_hwirq
	movl	%eax, %r12d
	movq	_IRQCHIP_STATE_LINE_LEVEL@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_1
## %bb.2:
	movl	%r12d, %r13d
	shrl	$3, %r13d
	movq	%r15, %rdi
	callq	_spin_lock
	movl	4(%r15), %edi
	movq	_SSBI_REG_ADDR_IRQ_BLK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movl	4(%r15), %edi
	movq	_SSBI_REG_ADDR_IRQ_RT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_7
LBB0_6:
	andl	$7, %r12d
	movl	-44(%rbp), %ebx
	movl	%r12d, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	movl	%ecx, (%r14)
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQCHIP_STATE_LINE_LEVEL,4,2   ## @IRQCHIP_STATE_LINE_LEVEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SSBI_REG_ADDR_IRQ_BLK_SEL,4,2  ## @SSBI_REG_ADDR_IRQ_BLK_SEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed Selecting Block %d rc=%d\n"

	.comm	_SSBI_REG_ADDR_IRQ_RT_STATUS,4,2 ## @SSBI_REG_ADDR_IRQ_RT_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"Failed Reading Status rc=%d\n"

	.no_dead_strip	_pm8xxx_irq_get_irqchip_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_irq_get_irqchip_state
_pm8xxx_irq_get_irqchip_state:          ; @pm8xxx_irq_get_irqchip_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_irq_data_get_irq_chip_data
	mov	x19, x0
	mov	x0, x22
	bl	_irqd_to_hwirq
Lloh0:
	adrp	x8, _IRQCHIP_STATE_LINE_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQCHIP_STATE_LINE_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.1:
	mov	x22, x0
	lsr	w23, w0, #3
	mov	x0, x19
	bl	_spin_lock
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _SSBI_REG_ADDR_IRQ_BLK_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSBI_REG_ADDR_IRQ_BLK_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_regmap_write
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_pr_err
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_4:
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x8, _SSBI_REG_ADDR_IRQ_RT_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSBI_REG_ADDR_IRQ_RT_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_pr_err
	b	LBB0_7
LBB0_6:
	and	w0, w22, #0x7
	ldr	w22, [sp, #12]
	bl	_BIT
	tst	w0, w22
	cset	w8, ne
	str	w8, [x20]
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQCHIP_STATE_LINE_LEVEL,4,2   ; @IRQCHIP_STATE_LINE_LEVEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SSBI_REG_ADDR_IRQ_BLK_SEL,4,2  ; @SSBI_REG_ADDR_IRQ_BLK_SEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed Selecting Block %d rc=%d\n"

	.comm	_SSBI_REG_ADDR_IRQ_RT_STATUS,4,2 ; @SSBI_REG_ADDR_IRQ_RT_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"Failed Reading Status rc=%d\n"

	.no_dead_strip	_pm8xxx_irq_get_irqchip_state
.subsections_via_symbols
