	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_minnow_platform_init
_pch_gbe_minnow_platform_init:          ## @pch_gbe_minnow_platform_init
	.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	%rdi, %r15
	movq	_GPIOF_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_GPIOF_INIT_HIGH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	orq	(%rax), %rdx
	movq	_GPIOF_EXPORT@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	movq	_MINNOW_PHY_RESET_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %esi
	callq	_devm_gpio_request_one
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	movl	$1250, %edi                     ## imm = 0x4E2
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_gpio_set_value
	movl	$1250, %edi                     ## imm = 0x4E2
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOF_DIR_OUT,8,3              ## @GPIOF_DIR_OUT
	.comm	_GPIOF_INIT_HIGH,8,3            ## @GPIOF_INIT_HIGH
	.comm	_GPIOF_EXPORT,8,3               ## @GPIOF_EXPORT
	.comm	_MINNOW_PHY_RESET_GPIO,4,2      ## @MINNOW_PHY_RESET_GPIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"minnow_phy_reset"

L_.str.1:                               ## @.str.1
	.asciz	"ERR: Can't request PHY reset GPIO line '%d'\n"

	.no_dead_strip	_pch_gbe_minnow_platform_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_minnow_platform_init
_pch_gbe_minnow_platform_init:          ; @pch_gbe_minnow_platform_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, _GPIOF_DIR_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOF_DIR_OUT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _GPIOF_INIT_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GPIOF_INIT_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _GPIOF_EXPORT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GPIOF_EXPORT@GOTPAGEOFF]
	orr	x8, x9, x8
Lloh8:
	ldr	x9, [x10]
	orr	x2, x8, x9
Lloh9:
	adrp	x8, _MINNOW_PHY_RESET_GPIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MINNOW_PHY_RESET_GPIO@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x1, x20
	bl	_devm_gpio_request_one
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	bl	_gpio_set_value
	mov	w0, #1250
	mov	w1, #1500
	bl	_usleep_range
	mov	x0, x20
	mov	w1, #1
	bl	_gpio_set_value
	mov	w0, #1250
	mov	w1, #1500
	bl	_usleep_range
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOF_DIR_OUT,8,3              ; @GPIOF_DIR_OUT
	.comm	_GPIOF_INIT_HIGH,8,3            ; @GPIOF_INIT_HIGH
	.comm	_GPIOF_EXPORT,8,3               ; @GPIOF_EXPORT
	.comm	_MINNOW_PHY_RESET_GPIO,4,2      ; @MINNOW_PHY_RESET_GPIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"minnow_phy_reset"

l_.str.1:                               ; @.str.1
	.asciz	"ERR: Can't request PHY reset GPIO line '%d'\n"

	.no_dead_strip	_pch_gbe_minnow_platform_init
.subsections_via_symbols
