	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocelot_gpiochip_register
_ocelot_gpiochip_register:              ## @ocelot_gpiochip_register
	.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	%rsi, %rdx
	movq	%rdi, %rbx
	leaq	16(%rsi), %r15
	movq	_ocelot_gpiolib_chip@GOTPCREL(%rip), %rax
	movq	32(%rax), %rcx
	movq	%rcx, 48(%rsi)
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 32(%rsi)
	movups	%xmm0, 16(%rsi)
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rsi)
	movq	%rdi, 40(%rsi)
	movq	$0, 32(%rsi)
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	leaq	L_.str(%rip), %rax
	movq	%rax, 16(%rsi)
	movq	%r15, %rsi
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ocelot_irqchip@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_ocelot_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ocelot_irqchip@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_gpiochip_set_chained_irqchip
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movl	%r14d, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ocelot_gpiolib_chip,40,3       ## @ocelot_gpiolib_chip
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ocelot-gpio"

	.comm	_ocelot_irqchip,4,2             ## @ocelot_irqchip
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_ocelot_irq_handler,4,2         ## @ocelot_irq_handler
	.no_dead_strip	_ocelot_gpiochip_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocelot_gpiochip_register
_ocelot_gpiochip_register:              ; @ocelot_gpiochip_register
	.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	x2, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ocelot_gpiolib_chip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ocelot_gpiolib_chip@GOTPAGEOFF]
	add	x19, x1, #16
	ldr	x9, [x8, #32]
	str	x9, [x1, #48]
	ldp	q1, q0, [x8]
	stp	q1, q0, [x1, #16]
	ldp	x9, x8, [x1]
	ldr	w8, [x8]
	str	w8, [x1, #48]
	stp	xzr, x0, [x1, #32]
	ldr	w8, [x9]
	str	w8, [x1, #24]
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x1, #16]
	mov	x1, x19
	bl	_devm_gpiochip_add_data
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_irq_of_parse_and_map
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
Lloh4:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
Lloh10:
	adrp	x1, _ocelot_irqchip@GOTPAGE
Lloh11:
	ldr	x1, [x1, _ocelot_irqchip@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	bl	_gpiochip_irqchip_add
	cbnz	w0, LBB0_1
; %bb.4:
Lloh12:
	adrp	x8, _ocelot_irq_handler@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ocelot_irq_handler@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x1, _ocelot_irqchip@GOTPAGE
Lloh16:
	ldr	x1, [x1, _ocelot_irqchip@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_gpiochip_set_chained_irqchip
	mov	w0, #0
	b	LBB0_1
LBB0_5:
	mov	x0, x20
	b	LBB0_1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ocelot_gpiolib_chip,40,3       ; @ocelot_gpiolib_chip
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ocelot-gpio"

	.comm	_ocelot_irqchip,4,2             ; @ocelot_irqchip
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_ocelot_irq_handler,4,2         ; @ocelot_irq_handler
	.no_dead_strip	_ocelot_gpiochip_register
.subsections_via_symbols
