	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function giu_probe
_giu_probe:                             ## @giu_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edx
	cmpl	$128, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$130, %edx
	je	LBB0_3
## %bb.4:
	cmpl	$129, %edx
	jne	LBB0_21
## %bb.5:
	movl	$48, %eax
	movq	_GPIO_HAS_INTERRUPT_EDGE_SELECT@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movl	$50, %eax
	movq	_GPIO_HAS_PULLUPDOWN_IO@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movq	_giu_flags@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	jmp	LBB0_7
LBB0_3:
	movl	$36, %eax
LBB0_7:
	movq	_vr41xx_gpio_chip@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	_giu_base@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.23:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	leaq	4(%r14), %rax
	movq	%rax, 8(%r15)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_gpiochip_add_data
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	addq	$4, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_22:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_GIUINTENL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_giu_write
	movq	_GIUINTENH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_giu_write
	movq	_GIUINTTYPH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_giu_read
	movl	%eax, %r12d
	movq	_GIUINTTYPL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_giu_read
	movl	%eax, %r15d
	movq	_GIU_IRQ_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GIU_IRQ_LAST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jbe	LBB0_11
LBB0_17:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:
	movq	_nr_irqs@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_19
## %bb.20:
	movq	_giu_get_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cascade_irq                    ## TAILCALL
LBB0_11:
	shll	$16, %r12d
	orl	%r12d, %r15d
	movq	_giuint_high_irq_chip@GOTPCREL(%rip), %r13
	movq	_handle_edge_irq@GOTPCREL(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_irq_set_chip_and_handler
	incl	%ebx
	movq	_GIU_IRQ_LAST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	ja	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GPIO_PIN_OF_IRQ
	movq	%r13, %rsi
	movq	_GIUINT_HIGH_OFFSET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_giuint_low_irq_chip@GOTPCREL(%rip), %rsi
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	btl	%eax, %r15d
	movq	%r12, %rax
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_19:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_HAS_PULLUPDOWN_IO,4,2     ## @GPIO_HAS_PULLUPDOWN_IO
	.comm	_giu_flags,4,2                  ## @giu_flags
	.comm	_vr41xx_gpio_chip,16,3          ## @vr41xx_gpio_chip
	.comm	_GPIO_HAS_INTERRUPT_EDGE_SELECT,4,2 ## @GPIO_HAS_INTERRUPT_EDGE_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GIU: unknown ID %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_giu_base,4,2                   ## @giu_base
	.comm	_GIUINTENL,4,2                  ## @GIUINTENL
	.comm	_GIUINTENH,4,2                  ## @GIUINTENH
	.comm	_GIUINTTYPH,4,2                 ## @GIUINTTYPH
	.comm	_GIUINTTYPL,4,2                 ## @GIUINTTYPL
	.comm	_GIU_IRQ_BASE,4,2               ## @GIU_IRQ_BASE
	.comm	_GIU_IRQ_LAST,4,2               ## @GIU_IRQ_LAST
	.comm	_GIUINT_HIGH_OFFSET,4,2         ## @GIUINT_HIGH_OFFSET
	.comm	_giuint_low_irq_chip,4,2        ## @giuint_low_irq_chip
	.comm	_giuint_high_irq_chip,4,2       ## @giuint_high_irq_chip
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.comm	_nr_irqs,4,2                    ## @nr_irqs
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_giu_get_irq,4,2                ## @giu_get_irq
	.no_dead_strip	_giu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function giu_probe
_giu_probe:                             ; @giu_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w2, [x0]
	cmp	w2, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w2, #129
	b.ne	LBB0_16
; %bb.3:
	mov	w8, #48
Lloh0:
	adrp	x9, _GPIO_HAS_INTERRUPT_EDGE_SELECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GPIO_HAS_INTERRUPT_EDGE_SELECT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	w8, #50
Lloh2:
	adrp	x9, _GPIO_HAS_PULLUPDOWN_IO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GPIO_HAS_PULLUPDOWN_IO@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
Lloh4:
	adrp	x10, _giu_flags@GOTPAGE
Lloh5:
	ldr	x10, [x10, _giu_flags@GOTPAGEOFF]
Lloh6:
	str	w9, [x10]
	b	LBB0_7
LBB0_6:
	mov	w8, #36
LBB0_7:
Lloh7:
	adrp	x20, _vr41xx_gpio_chip@GOTPAGE
Lloh8:
	ldr	x20, [x20, _vr41xx_gpio_chip@GOTPAGEOFF]
	str	w8, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
Lloh9:
	adrp	x21, _giu_base@GOTPAGE
Lloh10:
	ldr	x21, [x21, _giu_base@GOTPAGEOFF]
	str	w0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_9:
	add	x8, x19, #4
	str	x8, [x20, #8]
	mov	x0, x20
	mov	x1, #0
	bl	_gpiochip_add_data
	cbnz	x0, LBB0_17
; %bb.10:
Lloh11:
	adrp	x8, _GIUINTENL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GIUINTENL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_giu_write
Lloh14:
	adrp	x8, _GIUINTENH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GIUINTENH@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_giu_write
Lloh17:
	adrp	x8, _GIUINTTYPH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GIUINTTYPH@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_giu_read
	mov	x21, x0
Lloh20:
	adrp	x8, _GIUINTTYPL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GIUINTTYPL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_giu_read
Lloh23:
	adrp	x8, _GIU_IRQ_BASE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GIU_IRQ_BASE@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
Lloh26:
	adrp	x22, _GIU_IRQ_LAST@GOTPAGE
Lloh27:
	ldr	x22, [x22, _GIU_IRQ_LAST@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w20, w8
	b.hi	LBB0_13
; %bb.11:
	orr	w21, w0, w21, lsl #16
Lloh28:
	adrp	x23, _GIUINT_HIGH_OFFSET@GOTPAGE
Lloh29:
	ldr	x23, [x23, _GIUINT_HIGH_OFFSET@GOTPAGEOFF]
Lloh30:
	adrp	x24, _giuint_high_irq_chip@GOTPAGE
Lloh31:
	ldr	x24, [x24, _giuint_high_irq_chip@GOTPAGEOFF]
Lloh32:
	adrp	x25, _giuint_low_irq_chip@GOTPAGE
Lloh33:
	ldr	x25, [x25, _giuint_low_irq_chip@GOTPAGEOFF]
Lloh34:
	adrp	x26, _handle_level_irq@GOTPAGE
Lloh35:
	ldr	x26, [x26, _handle_level_irq@GOTPAGEOFF]
Lloh36:
	adrp	x27, _handle_edge_irq@GOTPAGE
Lloh37:
	ldr	x27, [x27, _handle_edge_irq@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_GPIO_PIN_OF_IRQ
	ldr	w8, [x23]
	cmp	w0, w8
	csel	x1, x25, x24, lo
	lsr	w8, w21, w0
	tst	w8, #0x1
	csel	x8, x26, x27, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_irq_set_chip_and_handler
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.ls	LBB0_12
LBB0_13:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_19
; %bb.14:
Lloh38:
	adrp	x8, _nr_irqs@GOTPAGE
Lloh39:
	ldr	x8, [x8, _nr_irqs@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_19
; %bb.15:
Lloh41:
	adrp	x8, _giu_get_irq@GOTPAGE
Lloh42:
	ldr	x8, [x8, _giu_get_irq@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_cascade_irq
LBB0_16:
	add	x0, x19, #4
Lloh44:
	adrp	x1, l_.str@PAGE
Lloh45:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_17:
Lloh46:
	adrp	x8, _ENODEV@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh48:
	adrp	x8, _EBUSY@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_HAS_PULLUPDOWN_IO,4,2     ; @GPIO_HAS_PULLUPDOWN_IO
	.comm	_giu_flags,4,2                  ; @giu_flags
	.comm	_vr41xx_gpio_chip,16,3          ; @vr41xx_gpio_chip
	.comm	_GPIO_HAS_INTERRUPT_EDGE_SELECT,4,2 ; @GPIO_HAS_INTERRUPT_EDGE_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GIU: unknown ID %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_giu_base,4,2                   ; @giu_base
	.comm	_GIUINTENL,4,2                  ; @GIUINTENL
	.comm	_GIUINTENH,4,2                  ; @GIUINTENH
	.comm	_GIUINTTYPH,4,2                 ; @GIUINTTYPH
	.comm	_GIUINTTYPL,4,2                 ; @GIUINTTYPL
	.comm	_GIU_IRQ_BASE,4,2               ; @GIU_IRQ_BASE
	.comm	_GIU_IRQ_LAST,4,2               ; @GIU_IRQ_LAST
	.comm	_GIUINT_HIGH_OFFSET,4,2         ; @GIUINT_HIGH_OFFSET
	.comm	_giuint_low_irq_chip,4,2        ; @giuint_low_irq_chip
	.comm	_giuint_high_irq_chip,4,2       ; @giuint_high_irq_chip
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.comm	_nr_irqs,4,2                    ; @nr_irqs
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_giu_get_irq,4,2                ; @giu_get_irq
	.no_dead_strip	_giu_probe
.subsections_via_symbols
