	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function owl_gpio_init
_owl_gpio_init:                         ## @owl_gpio_init
	.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
	movl	$-1, 8(%rdi)
	movq	(%rdi), %rdi
	movq	104(%r15), %rax
	movl	16(%rax), %eax
	movl	%eax, 12(%r15)
	callq	_dev_name
	movl	%eax, 96(%r15)
	movq	(%r15), %rdi
	movq	%rdi, 88(%r15)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r15)
	movq	(%rdi), %rax
	movq	%rax, 72(%r15)
	movl	(%rax), %eax
	leaq	124(%r15), %rcx
	movl	%eax, 140(%r15)
	movq	_owl_gpio_irq_ack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%r15)
	movq	_owl_gpio_irq_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 132(%r15)
	movq	_owl_gpio_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%r15)
	movq	_owl_gpio_irq_set_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%r15)
	movq	%rcx, 64(%r15)
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_owl_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	%r15, 40(%r15)
	movl	120(%r15), %eax
	movl	%eax, 32(%r15)
	movq	112(%r15), %rax
	movq	%rax, 16(%r15)
	movl	12(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	leaq	8(%r15), %rdi
	movq	104(%r15), %r8
	movl	(%r8), %r9d
	testl	%r9d, %r9d
	jle	LBB0_8
## %bb.2:
	movq	8(%r8), %r11
	xorl	%esi, %esi
	xorl	%r10d, %r10d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%ebx, %r10d
	incq	%rsi
	movslq	%r9d, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%r11,%rsi,4), %ebx
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %r9
	movslq	%r10d, %rcx
	leaq	(%rax,%rcx,4), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r9,%rsi,4), %ebx
	movl	%ebx, (%rdx,%rcx,4)
	incq	%rcx
	movslq	(%r11,%rsi,4), %rbx
	cmpq	%rbx, %rcx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r8), %r9d
	jmp	LBB0_7
LBB0_8:
	movq	%r15, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r14d
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_11
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_9:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_owl_gpio_irq_ack,4,2           ## @owl_gpio_irq_ack
	.comm	_owl_gpio_irq_mask,4,2          ## @owl_gpio_irq_mask
	.comm	_owl_gpio_irq_unmask,4,2        ## @owl_gpio_irq_unmask
	.comm	_owl_gpio_irq_set_type,4,2      ## @owl_gpio_irq_set_type
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_owl_gpio_irq_handler,4,2       ## @owl_gpio_irq_handler
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register gpiochip\n"

	.no_dead_strip	_owl_gpio_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function owl_gpio_init
_owl_gpio_init:                         ; @owl_gpio_init
	.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
	mov	w8, #-1
	mov	x20, x0
	str	w8, [x20, #8]!
	ldr	x8, [x0, #104]
	ldr	w8, [x8, #16]
	str	w8, [x0, #12]
	ldr	x0, [x0]
	bl	_dev_name
	str	w0, [x19, #96]
Lloh0:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #80]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _owl_gpio_irq_ack@GOTPAGE
Lloh4:
	ldr	x9, [x9, _owl_gpio_irq_ack@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w10, [x19, #136]
Lloh6:
	adrp	x9, _owl_gpio_irq_mask@GOTPAGE
Lloh7:
	ldr	x9, [x9, _owl_gpio_irq_mask@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _owl_gpio_irq_unmask@GOTPAGE
Lloh10:
	ldr	x10, [x10, _owl_gpio_irq_unmask@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #128]
Lloh12:
	adrp	x9, _owl_gpio_irq_set_type@GOTPAGE
Lloh13:
	ldr	x9, [x9, _owl_gpio_irq_set_type@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mov	x10, x19
	str	w9, [x10, #124]!
	str	x0, [x19, #88]
	stp	x10, x8, [x19, #64]
Lloh15:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #56]
Lloh18:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _owl_gpio_irq_handler@GOTPAGE
Lloh22:
	ldr	x9, [x9, _owl_gpio_irq_handler@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
	str	x19, [x19, #40]
	ldr	w8, [x19, #120]
	str	w8, [x19, #32]
	ldr	x8, [x19, #112]
	str	x8, [x19, #16]
	ldr	w1, [x19, #12]
Lloh24:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x19, #104]
	ldr	w12, [x8]
	cmp	w12, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x9, #0
	mov	w10, #0
	ldr	x11, [x8, #8]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w13, w10
	add	x9, x9, #1
	cmp	x9, w12, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w13, [x11, x9, lsl #2]
	cmp	w13, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, #0
	ldr	x14, [x19, #16]
	add	x15, x0, w10, sxtw #2
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x13, x9, #2
	ldr	w16, [x14, x13]
	str	w16, [x15, x12, lsl #2]
	add	x12, x12, #1
	ldrsw	x13, [x11, x13]
	cmp	x12, x13
	b.lt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x8]
	b	LBB0_3
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_gpiochip_add_data
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.9:
	ldr	x0, [x19]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_11
LBB0_10:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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 AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_owl_gpio_irq_ack,4,2           ; @owl_gpio_irq_ack
	.comm	_owl_gpio_irq_mask,4,2          ; @owl_gpio_irq_mask
	.comm	_owl_gpio_irq_unmask,4,2        ; @owl_gpio_irq_unmask
	.comm	_owl_gpio_irq_set_type,4,2      ; @owl_gpio_irq_set_type
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_owl_gpio_irq_handler,4,2       ; @owl_gpio_irq_handler
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register gpiochip\n"

	.no_dead_strip	_owl_gpio_init
.subsections_via_symbols
