	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpmc_irq_set_type
_gpmc_irq_set_type:                     ## @gpmc_irq_set_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rdi
	movq	_GPMC_NR_NAND_IRQS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jl	LBB0_5
## %bb.1:
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_gpmc_irq_edge_config
	jmp	LBB0_6
LBB0_3:
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	$1, %esi
	callq	_gpmc_irq_edge_config
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPMC_NR_NAND_IRQS,8,3          ## @GPMC_NR_NAND_IRQS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.no_dead_strip	_gpmc_irq_set_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpmc_irq_set_type
_gpmc_irq_set_type:                     ; @gpmc_irq_set_type
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _GPMC_NR_NAND_IRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPMC_NR_NAND_IRQS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.2:
	mov	w1, #0
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.4:
	mov	w1, #1
LBB0_5:
	bl	_gpmc_irq_edge_config
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GPMC_NR_NAND_IRQS,8,3          ; @GPMC_NR_NAND_IRQS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.no_dead_strip	_gpmc_irq_set_type
.subsections_via_symbols
