	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asix_write_gpio
_asix_write_gpio:                       ## @asix_write_gpio
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_devdbg
	movq	_AX_CMD_WRITE_GPIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_asix_write_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_4
LBB0_3:
	movl	%r14d, %edi
	callq	_msleep
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_deverr
	testl	%r14d, %r14d
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asix_write_gpio() - value = 0x%04x"

	.comm	_AX_CMD_WRITE_GPIOS,4,2         ## @AX_CMD_WRITE_GPIOS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write GPIO value 0x%04x: %02x"

	.no_dead_strip	_asix_write_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asix_write_gpio
_asix_write_gpio:                       ; @asix_write_gpio
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_devdbg
Lloh2:
	adrp	x8, _AX_CMD_WRITE_GPIOS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AX_CMD_WRITE_GPIOS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_asix_write_cmd
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cbz	w19, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_msleep
LBB0_3:
	mov	x0, x22
	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
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	bl	_deverr
	cbnz	w19, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asix_write_gpio() - value = 0x%04x"

	.comm	_AX_CMD_WRITE_GPIOS,4,2         ; @AX_CMD_WRITE_GPIOS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write GPIO value 0x%04x: %02x"

	.no_dead_strip	_asix_write_gpio
.subsections_via_symbols
