	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioh_gpio_alloc_generic_chip
_ioh_gpio_alloc_generic_chip:           ## @ioh_gpio_alloc_generic_chip
	.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
	movl	%edx, %r14d
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	4(%rbx), %r8d
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_devm_irq_alloc_generic_chip
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, 8(%rax)
	movq	(%rax), %rax
	movq	_ioh_irq_mask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_ioh_irq_unmask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_ioh_irq_type@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_ioh_irq_disable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_ioh_irq_enable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	(%rbx), %ebx
	movl	%r14d, %edi
	callq	_IRQ_MSK
	movq	_IRQ_GC_INIT_MASK_CACHE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQ_NOREQUEST@GOTPCREL(%rip), %rdx
	movq	_IRQ_NOPROBE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rdx), %r8d
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_irq_setup_generic_chip    ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioh_gpio"

	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ioh_irq_mask,4,2               ## @ioh_irq_mask
	.comm	_ioh_irq_unmask,4,2             ## @ioh_irq_unmask
	.comm	_ioh_irq_type,4,2               ## @ioh_irq_type
	.comm	_ioh_irq_disable,4,2            ## @ioh_irq_disable
	.comm	_ioh_irq_enable,4,2             ## @ioh_irq_enable
	.comm	_IRQ_GC_INIT_MASK_CACHE,4,2     ## @IRQ_GC_INIT_MASK_CACHE
	.comm	_IRQ_NOREQUEST,4,2              ## @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ## @IRQ_NOPROBE
	.no_dead_strip	_ioh_gpio_alloc_generic_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioh_gpio_alloc_generic_chip
_ioh_gpio_alloc_generic_chip:           ; @ioh_gpio_alloc_generic_chip
	.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, x2
	mov	x3, x1
	mov	x20, x0
	ldr	w0, [x0]
	ldr	w4, [x20, #4]
Lloh0:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_devm_irq_alloc_generic_chip
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	str	x20, [x0, #8]
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _ioh_irq_mask@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ioh_irq_mask@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8, #16]
Lloh8:
	adrp	x9, _ioh_irq_unmask@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ioh_irq_unmask@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _ioh_irq_type@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ioh_irq_type@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #8]
Lloh14:
	adrp	x9, _ioh_irq_disable@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ioh_irq_disable@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _ioh_irq_enable@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ioh_irq_enable@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	ldr	w20, [x20]
	mov	x0, x19
	bl	_IRQ_MSK
	mov	x2, x0
Lloh20:
	adrp	x8, _IRQ_GC_INIT_MASK_CACHE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_GC_INIT_MASK_CACHE@GOTPAGEOFF]
Lloh22:
	adrp	x9, _IRQ_NOREQUEST@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IRQ_NOREQUEST@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
Lloh25:
	ldr	w8, [x9]
Lloh26:
	adrp	x9, _IRQ_NOPROBE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IRQ_NOPROBE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x0, x20
	mov	x1, x21
	mov	w5, #0
	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	_devm_irq_setup_generic_chip
LBB0_2:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioh_gpio"

	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ioh_irq_mask,4,2               ; @ioh_irq_mask
	.comm	_ioh_irq_unmask,4,2             ; @ioh_irq_unmask
	.comm	_ioh_irq_type,4,2               ; @ioh_irq_type
	.comm	_ioh_irq_disable,4,2            ; @ioh_irq_disable
	.comm	_ioh_irq_enable,4,2             ; @ioh_irq_enable
	.comm	_IRQ_GC_INIT_MASK_CACHE,4,2     ; @IRQ_GC_INIT_MASK_CACHE
	.comm	_IRQ_NOREQUEST,4,2              ; @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ; @IRQ_NOPROBE
	.no_dead_strip	_ioh_gpio_alloc_generic_chip
.subsections_via_symbols
