	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6352_g2_scratch_gpio_set_dir
_mv88e6352_g2_scratch_gpio_set_dir:     ## @mv88e6352_g2_scratch_gpio_set_dir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	movl	%esi, %edx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	_MV88E6352_G2_SCRATCH_GPIO_DIR_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MV88E6352_G2_SCRATCH_GPIO_DIR_IN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	_MV88E6352_G2_SCRATCH_GPIO_DIR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_mv88e6xxx_g2_scratch_set_bit   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6352_G2_SCRATCH_GPIO_DIR_IN,4,2 ## @MV88E6352_G2_SCRATCH_GPIO_DIR_IN
	.comm	_MV88E6352_G2_SCRATCH_GPIO_DIR_OUT,4,2 ## @MV88E6352_G2_SCRATCH_GPIO_DIR_OUT
	.comm	_MV88E6352_G2_SCRATCH_GPIO_DIR0,4,2 ## @MV88E6352_G2_SCRATCH_GPIO_DIR0
	.no_dead_strip	_mv88e6352_g2_scratch_gpio_set_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6352_g2_scratch_gpio_set_dir
_mv88e6352_g2_scratch_gpio_set_dir:     ; @mv88e6352_g2_scratch_gpio_set_dir
	.cfi_startproc
; %bb.0:
	mov	x8, x1
Lloh0:
	adrp	x9, _MV88E6352_G2_SCRATCH_GPIO_DIR_IN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV88E6352_G2_SCRATCH_GPIO_DIR_IN@GOTPAGEOFF]
Lloh2:
	adrp	x10, _MV88E6352_G2_SCRATCH_GPIO_DIR_OUT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MV88E6352_G2_SCRATCH_GPIO_DIR_OUT@GOTPAGEOFF]
	cmp	w2, #0
	csel	x9, x10, x9, eq
Lloh4:
	adrp	x10, _MV88E6352_G2_SCRATCH_GPIO_DIR0@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MV88E6352_G2_SCRATCH_GPIO_DIR0@GOTPAGEOFF]
	ldr	w3, [x9]
Lloh6:
	ldr	w1, [x10]
	mov	x2, x8
	b	_mv88e6xxx_g2_scratch_set_bit
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6352_G2_SCRATCH_GPIO_DIR_IN,4,2 ; @MV88E6352_G2_SCRATCH_GPIO_DIR_IN
	.comm	_MV88E6352_G2_SCRATCH_GPIO_DIR_OUT,4,2 ; @MV88E6352_G2_SCRATCH_GPIO_DIR_OUT
	.comm	_MV88E6352_G2_SCRATCH_GPIO_DIR0,4,2 ; @MV88E6352_G2_SCRATCH_GPIO_DIR0
	.no_dead_strip	_mv88e6352_g2_scratch_gpio_set_dir
.subsections_via_symbols
