	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_gpio_set                ## -- Begin function em28xx_gpio_set
	.p2align	4, 0x90
_em28xx_gpio_set:                       ## @em28xx_gpio_set
	.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
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_EM28XX_SUSPEND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$72, %esi
	xorl	%edx, %edx
	callq	_em28xx_write_reg
	movq	(%r14), %rax
	movq	_EM28XX_ANALOG_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_EM28XX_R12_VINENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$103, %eax
	movl	$55, %edx
	cmovel	%eax, %edx
	movq	%r14, %rdi
	callq	_em28xx_write_reg
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
LBB0_3:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_11
## %bb.4:
	addq	$24, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rdi
	addq	$24, %rbx
	testq	%rdi, %rdi
	js	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rbx), %rsi
	testq	%rsi, %rsi
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-8(%rbx), %ecx
	movl	-4(%rbx), %edx
	movq	%r14, %rdi
	callq	_em28xx_write_reg_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-24(%rbx), %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	testq	%rdi, %rdi
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_msleep
	jmp	LBB0_10
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_SUSPEND,8,3             ## @EM28XX_SUSPEND
	.comm	_EM28XX_ANALOG_MODE,8,3         ## @EM28XX_ANALOG_MODE
	.comm	_EM28XX_R12_VINENABLE,4,2       ## @EM28XX_R12_VINENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_gpio_set                ; -- Begin function em28xx_gpio_set
	.p2align	2
_em28xx_gpio_set:                       ; @em28xx_gpio_set
	.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
	cbz	x1, LBB0_11
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _EM28XX_SUSPEND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EM28XX_SUSPEND@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #72
	mov	w2, #0
	bl	_em28xx_write_reg
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _EM28XX_ANALOG_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EM28XX_ANALOG_MODE@GOTPAGEOFF]
Lloh5:
	adrp	x10, _EM28XX_R12_VINENABLE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EM28XX_R12_VINENABLE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	ldr	w1, [x10]
	cmp	x8, x9
	mov	w8, #55
	mov	w9, #103
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_em28xx_write_reg
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
LBB0_3:
	ldr	x0, [x21]
	tbnz	x0, #63, LBB0_11
; %bb.4:
	mov	w20, #0
	add	x21, x21, #16
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x21, #8]
	add	x21, x21, #24
	tbnz	x0, #63, LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x1, [x21, #-8]
	tbnz	x1, #63, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w3, w2, [x21]
	mov	x0, x19
	bl	_em28xx_write_reg_bits
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x0, [x21, #-16]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_msleep
	b	LBB0_5
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_SUSPEND,8,3             ; @EM28XX_SUSPEND
	.comm	_EM28XX_ANALOG_MODE,8,3         ; @EM28XX_ANALOG_MODE
	.comm	_EM28XX_R12_VINENABLE,4,2       ; @EM28XX_R12_VINENABLE
.subsections_via_symbols
