	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_quark_i2c_setup
_intel_quark_i2c_setup:                 ## @intel_quark_i2c_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	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rsi), %r12
	leaq	4(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_MFD_I2C_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(%r12,%rcx,8)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_pci_resource_end
	movq	(%r14), %rcx
	movl	%eax, (%r12,%rcx,8)
	movl	(%rbx), %eax
	movq	_INTEL_QUARK_IORES_IRQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%r12,%rcx,8)
	movl	%eax, (%r12,%rcx,8)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$100000, (%rax)                 ## imm = 0x186A0
	movq	_dmi_platform_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_first_match
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_4:
	movq	%rbx, 8(%r15)
	movl	$4, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MFD_I2C_BAR,4,2                ## @MFD_I2C_BAR
	.comm	_INTEL_QUARK_IORES_MEM,8,3      ## @INTEL_QUARK_IORES_MEM
	.comm	_INTEL_QUARK_IORES_IRQ,8,3      ## @INTEL_QUARK_IORES_IRQ
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dmi_platform_info,4,2          ## @dmi_platform_info
	.no_dead_strip	_intel_quark_i2c_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_i2c_setup
_intel_quark_i2c_setup:                 ; @intel_quark_i2c_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	x21, [x1, #16]
Lloh0:
	adrp	x22, _MFD_I2C_BAR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MFD_I2C_BAR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_pci_resource_start
Lloh2:
	adrp	x23, _INTEL_QUARK_IORES_MEM@GOTPAGE
Lloh3:
	ldr	x23, [x23, _INTEL_QUARK_IORES_MEM@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x8, x21, x8, lsl #3
	str	w0, [x8, #4]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_pci_resource_end
	ldr	x8, [x23]
	lsl	x8, x8, #3
	str	w0, [x21, x8]
	ldr	w8, [x20], #4
Lloh4:
	adrp	x9, _INTEL_QUARK_IORES_IRQ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INTEL_QUARK_IORES_IRQ@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x9, x21, x9, lsl #3
	stp	w8, w8, [x9]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w8, #34464
	movk	w8, #1, lsl #16
	str	w8, [x0]
Lloh10:
	adrp	x8, _dmi_platform_info@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dmi_platform_info@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_dmi_first_match
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x0]
	str	w8, [x20]
LBB0_3:
	mov	w0, #0
	str	x20, [x19, #8]
	mov	w8, #4
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MFD_I2C_BAR,4,2                ; @MFD_I2C_BAR
	.comm	_INTEL_QUARK_IORES_MEM,8,3      ; @INTEL_QUARK_IORES_MEM
	.comm	_INTEL_QUARK_IORES_IRQ,8,3      ; @INTEL_QUARK_IORES_IRQ
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dmi_platform_info,4,2          ; @dmi_platform_info
	.no_dead_strip	_intel_quark_i2c_setup
.subsections_via_symbols
