	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acquire_bch_irq
_acquire_bch_irq:                       ## @acquire_bch_irq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_GPMI_NAND_BCH_INTERRUPT_RES_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_platform_get_resource_byname
	movl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r14d, %r15d
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPMI_NAND_BCH_INTERRUPT_RES_NAME,8,3 ## @GPMI_NAND_BCH_INTERRUPT_RES_NAME
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't get resource for %s\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"error requesting BCH IRQ\n"

	.no_dead_strip	_acquire_bch_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acquire_bch_irq
_acquire_bch_irq:                       ; @acquire_bch_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _GPMI_NAND_BCH_INTERRUPT_RES_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPMI_NAND_BCH_INTERRUPT_RES_NAME@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_platform_get_resource_byname
	mov	x8, x0
	ldr	w0, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x8]
	mov	x2, x21
	mov	w3, #0
	mov	x4, x20
	mov	x5, x19
	bl	_devm_request_irq
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GPMI_NAND_BCH_INTERRUPT_RES_NAME,8,3 ; @GPMI_NAND_BCH_INTERRUPT_RES_NAME
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't get resource for %s\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"error requesting BCH IRQ\n"

	.no_dead_strip	_acquire_bch_irq
.subsections_via_symbols
