	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_quark_gpio_setup
_intel_quark_gpio_setup:                ## @intel_quark_gpio_setup
	.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, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rbx
	leaq	4(%rdi), %r15
	movq	_MFD_GPIO_BAR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_pci_resource_start
	movq	_INTEL_QUARK_IORES_MEM@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, 4(%rbx,%rcx,8)
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_pci_resource_end
	movq	(%r14), %rcx
	movl	%eax, (%rbx,%rcx,8)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_INTEL_QUARK_GPIO_NPORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 8(%rbx)
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$40, %edx
	callq	_devm_kcalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rax)
	movq	_INTEL_QUARK_MFD_NGPIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_INTEL_QUARK_MFD_GPIO_BASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	(%r12), %ecx
	movq	8(%rax), %rdx
	movl	%ecx, (%rdx)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 8(%rax)
	movl	$16, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MFD_GPIO_BAR,4,2               ## @MFD_GPIO_BAR
	.comm	_INTEL_QUARK_IORES_MEM,8,3      ## @INTEL_QUARK_IORES_MEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INTEL_QUARK_GPIO_NPORTS,4,2    ## @INTEL_QUARK_GPIO_NPORTS
	.comm	_INTEL_QUARK_MFD_NGPIO,4,2      ## @INTEL_QUARK_MFD_NGPIO
	.comm	_INTEL_QUARK_MFD_GPIO_BASE,4,2  ## @INTEL_QUARK_MFD_GPIO_BASE
	.no_dead_strip	_intel_quark_gpio_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_quark_gpio_setup
_intel_quark_gpio_setup:                ; @intel_quark_gpio_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x1, #16]
	add	x21, x0, #4
Lloh0:
	adrp	x23, _MFD_GPIO_BAR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MFD_GPIO_BAR@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_pci_resource_start
Lloh2:
	adrp	x24, _INTEL_QUARK_IORES_MEM@GOTPAGE
Lloh3:
	ldr	x24, [x24, _INTEL_QUARK_IORES_MEM@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x8, x22, x8, lsl #3
	str	w0, [x8, #4]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_pci_resource_end
	ldr	x8, [x24]
	lsl	x8, x8, #3
	str	w0, [x22, x8]
Lloh4:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x21
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh6:
	adrp	x8, _INTEL_QUARK_GPIO_NPORTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTEL_QUARK_GPIO_NPORTS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	str	w1, [x0, #8]
	ldr	w3, [x23]
	mov	x0, x21
	mov	w2, #40
	bl	_devm_kcalloc
	str	x0, [x22]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	stp	xzr, xzr, [x8, #24]
Lloh9:
	adrp	x9, _INTEL_QUARK_MFD_NGPIO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INTEL_QUARK_MFD_NGPIO@GOTPAGEOFF]
Lloh11:
	adrp	x10, _INTEL_QUARK_MFD_GPIO_BASE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _INTEL_QUARK_MFD_GPIO_BASE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #16]
	ldr	w9, [x20]
	ldr	x10, [x8, #8]
	str	w9, [x10]
	movi.2s	v0, #1
	str	d0, [x8]
	str	x22, [x19, #8]
	mov	w8, #16
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MFD_GPIO_BAR,4,2               ; @MFD_GPIO_BAR
	.comm	_INTEL_QUARK_IORES_MEM,8,3      ; @INTEL_QUARK_IORES_MEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INTEL_QUARK_GPIO_NPORTS,4,2    ; @INTEL_QUARK_GPIO_NPORTS
	.comm	_INTEL_QUARK_MFD_NGPIO,4,2      ; @INTEL_QUARK_MFD_NGPIO
	.comm	_INTEL_QUARK_MFD_GPIO_BASE,4,2  ; @INTEL_QUARK_MFD_GPIO_BASE
	.no_dead_strip	_intel_quark_gpio_setup
.subsections_via_symbols
