	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sfp_gpio_set_state
_sfp_gpio_set_state:                    ## @sfp_gpio_set_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_GPIO_TX_DISABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	_SFP_F_PRESENT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_5
## %bb.1:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	_SFP_F_TX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%ebx, %esi
	callq	_gpiod_direction_output
LBB0_3:
	movq	_SFP_F_RATE_SELECT@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_8
## %bb.4:
	movq	(%r14), %rax
	movq	_GPIO_RATE_SELECT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gpiod_direction_output         ## TAILCALL
LBB0_5:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_gpiod_direction_input
LBB0_7:
	movq	_SFP_F_RATE_SELECT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rax
	movq	_GPIO_RATE_SELECT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gpiod_direction_input          ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SFP_F_PRESENT,4,2              ## @SFP_F_PRESENT
	.comm	_GPIO_TX_DISABLE,8,3            ## @GPIO_TX_DISABLE
	.comm	_SFP_F_TX_DISABLE,4,2           ## @SFP_F_TX_DISABLE
	.comm	_SFP_F_RATE_SELECT,4,2          ## @SFP_F_RATE_SELECT
	.comm	_GPIO_RATE_SELECT,8,3           ## @GPIO_RATE_SELECT
	.no_dead_strip	_sfp_gpio_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sfp_gpio_set_state
_sfp_gpio_set_state:                    ; @sfp_gpio_set_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SFP_F_PRESENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SFP_F_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _GPIO_TX_DISABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GPIO_TX_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x0, [x9, x10, lsl #3]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _SFP_F_TX_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SFP_F_TX_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w1, w8, w20
	bl	_gpiod_direction_output
LBB0_3:
Lloh9:
	adrp	x8, _SFP_F_RATE_SELECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SFP_F_RATE_SELECT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ands	w1, w8, w20
	b.eq	LBB0_9
; %bb.4:
Lloh12:
	adrp	x8, _GPIO_RATE_SELECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIO_RATE_SELECT@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh14:
	ldr	x8, [x8]
	ldr	x0, [x9, x8, lsl #3]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gpiod_direction_output
LBB0_5:
	cbz	x0, LBB0_7
; %bb.6:
	bl	_gpiod_direction_input
LBB0_7:
Lloh15:
	adrp	x8, _SFP_F_RATE_SELECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SFP_F_RATE_SELECT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _GPIO_RATE_SELECT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GPIO_RATE_SELECT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gpiod_direction_input
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SFP_F_PRESENT,4,2              ; @SFP_F_PRESENT
	.comm	_GPIO_TX_DISABLE,8,3            ; @GPIO_TX_DISABLE
	.comm	_SFP_F_TX_DISABLE,4,2           ; @SFP_F_TX_DISABLE
	.comm	_SFP_F_RATE_SELECT,4,2          ; @SFP_F_RATE_SELECT
	.comm	_GPIO_RATE_SELECT,8,3           ; @GPIO_RATE_SELECT
	.no_dead_strip	_sfp_gpio_set_state
.subsections_via_symbols
