	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_set_mode                ## -- Begin function em28xx_set_mode
	.p2align	4, 0x90
_em28xx_set_mode:                       ## @em28xx_set_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	%esi, (%rdi)
	jne	LBB0_1
## %bb.7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	_EM28XX_SUSPEND@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	movl	%esi, (%rdi)
	jne	LBB0_3
## %bb.2:
	leaq	12(%rbx), %rax
	jmp	LBB0_6
LBB0_3:
	movslq	%esi, %rax
	movq	_EM28XX_DIGITAL_MODE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_5
## %bb.4:
	leaq	8(%rbx), %rax
	jmp	LBB0_6
LBB0_5:
	movl	4(%rbx), %edi
	callq	_INPUT
LBB0_6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_em28xx_gpio_set                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_SUSPEND,4,2             ## @EM28XX_SUSPEND
	.comm	_EM28XX_DIGITAL_MODE,8,3        ## @EM28XX_DIGITAL_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_set_mode                ; -- Begin function em28xx_set_mode
	.p2align	2
_em28xx_set_mode:                       ; @em28xx_set_mode
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x8, _EM28XX_SUSPEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EM28XX_SUSPEND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w1, [x0]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
	add	x0, x19, #12
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _EM28XX_DIGITAL_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EM28XX_DIGITAL_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, w1, sxtw
	b.ne	LBB0_6
; %bb.5:
	add	x0, x19, #8
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_INPUT
LBB0_7:
	ldr	w1, [x0]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_em28xx_gpio_set
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_SUSPEND,4,2             ; @EM28XX_SUSPEND
	.comm	_EM28XX_DIGITAL_MODE,8,3        ; @EM28XX_DIGITAL_MODE
.subsections_via_symbols
