	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_gpio_probe
_intel_gpio_probe:                      ## @intel_gpio_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	40(%rdi), %rbx
	movq	_intel_gpio_chip@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, 56(%rdi)
	movups	(%rax), %xmm0
	movups	%xmm0, 40(%rdi)
	callq	_intel_gpio_ngpio
	movl	%eax, 56(%r12)
	movl	64(%r12), %edi
	callq	_dev_name
	movq	%rax, 48(%r12)
	movl	64(%r12), %edi
	movl	%edi, 44(%r12)
	movl	$-1, 40(%r12)
	movl	%r14d, (%r12)
	callq	_dev_name
	movq	%rax, 32(%r12)
	movq	_intel_gpio_irq_ack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_intel_gpio_irq_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_intel_gpio_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_intel_gpio_irq_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_intel_gpio_irq_wake@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_IRQCHIP_MASK_ON_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	64(%r12), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %r15d
	movl	64(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_12
LBB0_1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r12)
	jle	LBB0_7
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r12), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_intel_gpio_add_pin_ranges
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	4(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_7:
	movl	64(%r12), %ebx
	movq	_intel_gpio_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	_IRQF_NO_THREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_dev_name
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movq	%rax, %r8
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movl	64(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_12
LBB0_6:
	movl	%eax, %r15d
	movl	64(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_12
LBB0_9:
	leaq	8(%r12), %rsi
	movq	_handle_bad_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r13d
	movl	64(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movl	%r13d, %r15d
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_gpiochip_set_chained_irqchip
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_gpio_chip,24,3           ## @intel_gpio_chip
	.comm	_intel_gpio_irq_ack,4,2         ## @intel_gpio_irq_ack
	.comm	_intel_gpio_irq_mask,4,2        ## @intel_gpio_irq_mask
	.comm	_intel_gpio_irq_unmask,4,2      ## @intel_gpio_irq_unmask
	.comm	_intel_gpio_irq_type,4,2        ## @intel_gpio_irq_type
	.comm	_intel_gpio_irq_wake,4,2        ## @intel_gpio_irq_wake
	.comm	_IRQCHIP_MASK_ON_SUSPEND,4,2    ## @IRQCHIP_MASK_ON_SUSPEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register gpiochip\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to add GPIO pin range\n"

	.comm	_intel_gpio_irq,4,2             ## @intel_gpio_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_IRQF_NO_THREAD,4,2             ## @IRQF_NO_THREAD
L_.str.2:                               ## @.str.2
	.asciz	"failed to request interrupt\n"

	.comm	_handle_bad_irq,4,2             ## @handle_bad_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
L_.str.3:                               ## @.str.3
	.asciz	"failed to add irqchip\n"

	.no_dead_strip	_intel_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_gpio_probe
_intel_gpio_probe:                      ; @intel_gpio_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #40
Lloh0:
	adrp	x8, _intel_gpio_chip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intel_gpio_chip@GOTPAGEOFF]
	ldr	q0, [x8]
	stur	q0, [x0, #40]
	ldr	x8, [x8, #16]
	str	x8, [x0, #56]
	bl	_intel_gpio_ngpio
	str	w0, [x19, #56]
	ldr	w0, [x19, #64]
	bl	_dev_name
	str	x0, [x19, #48]
	ldr	w0, [x19, #64]
	mov	w8, #-1
	stp	w8, w0, [x19, #40]
	str	w20, [x19]
	bl	_dev_name
Lloh2:
	adrp	x8, _IRQCHIP_MASK_ON_SUSPEND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQCHIP_MASK_ON_SUSPEND@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x22, x19
	str	w8, [x22, #8]!
	str	x0, [x19, #32]
Lloh5:
	adrp	x8, _intel_gpio_irq_ack@GOTPAGE
Lloh6:
	ldr	x8, [x8, _intel_gpio_irq_ack@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh8:
	adrp	x8, _intel_gpio_irq_mask@GOTPAGE
Lloh9:
	ldr	x8, [x8, _intel_gpio_irq_mask@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _intel_gpio_irq_unmask@GOTPAGE
Lloh12:
	ldr	x9, [x9, _intel_gpio_irq_unmask@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
Lloh14:
	adrp	x8, _intel_gpio_irq_type@GOTPAGE
Lloh15:
	ldr	x8, [x8, _intel_gpio_irq_type@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _intel_gpio_irq_wake@GOTPAGE
Lloh18:
	ldr	x9, [x9, _intel_gpio_irq_wake@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	ldr	w0, [x19, #64]
	mov	x1, x21
	mov	x2, x19
	bl	_devm_gpiochip_add_data
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	w0, [x19, #64]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x24, #0
	mov	x25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #72]
	add	x1, x8, x24
	mov	x0, x19
	bl	_intel_gpio_add_pin_ranges
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19, #4]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_4
LBB0_6:
	ldr	w23, [x19, #64]
Lloh22:
	adrp	x8, _intel_gpio_irq@GOTPAGE
Lloh23:
	ldr	x8, [x8, _intel_gpio_irq@GOTPAGEOFF]
Lloh24:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
Lloh27:
	ldr	w8, [x9]
Lloh28:
	adrp	x9, _IRQF_NO_THREAD@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IRQF_NO_THREAD@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w25, w9, w8
	mov	x0, x23
	bl	_dev_name
	mov	x4, x0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x24
	mov	x3, x25
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_9
; %bb.7:
	mov	x23, x0
	ldr	w0, [x19, #64]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_8:
	mov	x23, x0
	ldr	w0, [x19, #64]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_9:
Lloh35:
	adrp	x8, _handle_bad_irq@GOTPAGE
Lloh36:
	ldr	x8, [x8, _handle_bad_irq@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
Lloh38:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh40:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_gpiochip_irqchip_add
	mov	x23, x0
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x19, #64]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_11:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, #0
	bl	_gpiochip_set_chained_irqchip
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_gpio_chip,24,3           ; @intel_gpio_chip
	.comm	_intel_gpio_irq_ack,4,2         ; @intel_gpio_irq_ack
	.comm	_intel_gpio_irq_mask,4,2        ; @intel_gpio_irq_mask
	.comm	_intel_gpio_irq_unmask,4,2      ; @intel_gpio_irq_unmask
	.comm	_intel_gpio_irq_type,4,2        ; @intel_gpio_irq_type
	.comm	_intel_gpio_irq_wake,4,2        ; @intel_gpio_irq_wake
	.comm	_IRQCHIP_MASK_ON_SUSPEND,4,2    ; @IRQCHIP_MASK_ON_SUSPEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register gpiochip\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to add GPIO pin range\n"

	.comm	_intel_gpio_irq,4,2             ; @intel_gpio_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_IRQF_NO_THREAD,4,2             ; @IRQF_NO_THREAD
l_.str.2:                               ; @.str.2
	.asciz	"failed to request interrupt\n"

	.comm	_handle_bad_irq,4,2             ; @handle_bad_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
l_.str.3:                               ; @.str.3
	.asciz	"failed to add irqchip\n"

	.no_dead_strip	_intel_gpio_probe
.subsections_via_symbols
