	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_gpiod_get
_xgene_enet_gpiod_get:                  ## @xgene_enet_gpiod_get
	.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	8(%rdi), %rax
	movq	24(%rdi), %r14
	movl	$0, (%rdi)
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_present
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_present
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movl	$1, (%rbx)
	movq	_GPIOD_IN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_gpiod_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_gpiod_get
	movq	%rax, 16(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sfp-gpios"

L_.str.1:                               ## @.str.1
	.asciz	"rxlos-gpios"

L_.str.2:                               ## @.str.2
	.asciz	"rxlos"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.3:                               ## @.str.3
	.asciz	"sfp"

	.no_dead_strip	_xgene_enet_gpiod_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_gpiod_get
_xgene_enet_gpiod_get:                  ; @xgene_enet_gpiod_get
	.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
	ldr	x20, [x0, #24]
	str	wzr, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_property_present
	cbnz	w0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_device_property_present
	cbz	w0, LBB0_5
LBB0_3:
	mov	w8, #1
	str	w8, [x19]
Lloh7:
	adrp	x21, _GPIOD_IN@GOTPAGE
Lloh8:
	ldr	x21, [x21, _GPIOD_IN@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_gpiod_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w2, [x21]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_gpiod_get
	str	x0, [x19, #16]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sfp-gpios"

l_.str.1:                               ; @.str.1
	.asciz	"rxlos-gpios"

l_.str.2:                               ; @.str.2
	.asciz	"rxlos"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.3:                               ; @.str.3
	.asciz	"sfp"

	.no_dead_strip	_xgene_enet_gpiod_get
.subsections_via_symbols
