	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_irq_init_805
_device_irq_init_805:                   ## @device_irq_init_805
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	cmpl	$0, 8(%r15)
	je	LBB0_2
## %bb.3:
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_PM805_STATUS0_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PM805_STATUS0_INV_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ecx, %edx
	movq	_PM800_STATUS0_INT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PM805_INT_STATUS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_update_bits
	movl	%eax, %ebx
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.5:
	movq	16(%r15), %rdi
	movl	4(%r15), %r8d
	movl	8(%r15), %esi
	movq	%r14, %rdx
	movl	$-1, %ecx
	movq	%r15, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_add_irq_chip            ## TAILCALL
LBB0_2:
	movl	24(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect parameters\n"

	.comm	_PM805_STATUS0_INT_CLEAR,4,2    ## @PM805_STATUS0_INT_CLEAR
	.comm	_PM805_STATUS0_INV_INT,4,2      ## @PM805_STATUS0_INV_INT
	.comm	_PM800_STATUS0_INT_MASK,4,2     ## @PM800_STATUS0_INT_MASK
	.comm	_PM805_INT_STATUS0,4,2          ## @PM805_INT_STATUS0
	.no_dead_strip	_device_irq_init_805
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_irq_init_805
_device_irq_init_805:                   ; @device_irq_init_805
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _PM805_STATUS0_INT_CLEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PM805_STATUS0_INT_CLEAR@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _PM805_STATUS0_INV_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PM805_STATUS0_INV_INT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PM800_STATUS0_INT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PM800_STATUS0_INT_MASK@GOTPAGEOFF]
	orr	w8, w8, w3
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh12:
	adrp	x8, _PM805_INT_STATUS0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PM805_INT_STATUS0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_regmap_update_bits
	mov	x21, x0
	mov	w0, #1000
	mov	w1, #3000
	bl	_usleep_range
	tbnz	w21, #31, LBB0_5
; %bb.3:
	ldr	x0, [x19, #16]
	ldp	w4, w1, [x19, #4]
	mov	x2, x20
	mov	w3, #-1
	mov	x5, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_add_irq_chip
LBB0_4:
	ldr	w0, [x19, #24]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.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	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect parameters\n"

	.comm	_PM805_STATUS0_INT_CLEAR,4,2    ; @PM805_STATUS0_INT_CLEAR
	.comm	_PM805_STATUS0_INV_INT,4,2      ; @PM805_STATUS0_INV_INT
	.comm	_PM800_STATUS0_INT_MASK,4,2     ; @PM800_STATUS0_INT_MASK
	.comm	_PM805_INT_STATUS0,4,2          ; @PM805_INT_STATUS0
	.no_dead_strip	_device_irq_init_805
.subsections_via_symbols
