	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acquire_resources
_acquire_resources:                     ## @acquire_resources
	.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	%rdi, %r14
	movq	_GPMI_NAND_GPMI_REGS_ADDR_RES_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_acquire_register_block
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_GPMI_NAND_BCH_REGS_ADDR_RES_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_acquire_register_block
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_bch_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_acquire_bch_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_acquire_dma_channels
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_gpmi_get_clks
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_release_dma_channels
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPMI_NAND_GPMI_REGS_ADDR_RES_NAME,4,2 ## @GPMI_NAND_GPMI_REGS_ADDR_RES_NAME
	.comm	_GPMI_NAND_BCH_REGS_ADDR_RES_NAME,4,2 ## @GPMI_NAND_BCH_REGS_ADDR_RES_NAME
	.comm	_bch_irq,4,2                    ## @bch_irq
	.no_dead_strip	_acquire_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acquire_resources
_acquire_resources:                     ; @acquire_resources
	.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	x19, x0
Lloh0:
	adrp	x8, _GPMI_NAND_GPMI_REGS_ADDR_RES_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPMI_NAND_GPMI_REGS_ADDR_RES_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_acquire_register_block
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _GPMI_NAND_BCH_REGS_ADDR_RES_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPMI_NAND_BCH_REGS_ADDR_RES_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_acquire_register_block
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _bch_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bch_irq@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_acquire_bch_irq
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_acquire_dma_channels
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_gpmi_get_clks
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_release_dma_channels
LBB0_6:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_GPMI_NAND_GPMI_REGS_ADDR_RES_NAME,4,2 ; @GPMI_NAND_GPMI_REGS_ADDR_RES_NAME
	.comm	_GPMI_NAND_BCH_REGS_ADDR_RES_NAME,4,2 ; @GPMI_NAND_BCH_REGS_ADDR_RES_NAME
	.comm	_bch_irq,4,2                    ; @bch_irq
	.no_dead_strip	_acquire_resources
.subsections_via_symbols
