	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_USB_ExtraSetState              ## -- Begin function USB_ExtraSetState
	.p2align	4, 0x90
_USB_ExtraSetState:                     ## @USB_ExtraSetState
	.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
	movq	%rdi, %rbx
	movq	_USB_EXTRA_STATE_DISABLED_UNTIL_REPLUG@GOTPCREL(%rip), %r14
	movq	_USB_EXTRA_STATE_DISABLED@GOTPCREL(%rip), %r15
	movq	%rdi, %rax
	cmpq	%rdi, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
LBB0_2:
	movq	_usb_host_port@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_USB_HOST_PORT_1@GOTPCREL(%rip), %rsi
	movq	_sr_exp_data@GOTPCREL(%rip), %rcx
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.3:
	leaq	16(%rcx), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	_USB_HOST_PORT_2@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_12
## %bb.5:
	leaq	8(%rcx), %rdx
LBB0_6:
	movq	%rax, (%rdx)
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%dl
	movl	%edx, (%rcx)
	xorl	%eax, %eax
	callq	_SR_EXP_WriteData
	movq	_usb_extra_state@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_USB_EXTRA_STATE_ENABLED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_8:
	cmpq	%rbx, (%r15)
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpq	%rbx, (%r14)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CDC_print                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_EXTRA_STATE_DISABLED_UNTIL_REPLUG,8,3 ## @USB_EXTRA_STATE_DISABLED_UNTIL_REPLUG
	.comm	_USB_EXTRA_STATE_DISABLED,8,3   ## @USB_EXTRA_STATE_DISABLED
	.comm	_usb_host_port,8,3              ## @usb_host_port
	.comm	_USB_HOST_PORT_1,8,3            ## @USB_HOST_PORT_1
	.comm	_sr_exp_data,24,3               ## @sr_exp_data
	.comm	_USB_HOST_PORT_2,8,3            ## @USB_HOST_PORT_2
	.comm	_usb_extra_state,8,3            ## @usb_extra_state
	.comm	_USB_EXTRA_STATE_ENABLED,8,3    ## @USB_EXTRA_STATE_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB: Extra enabled\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"USB: Extra disabled\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"USB: Extra disabled until replug\r\n"

L_.str.3:                               ## @.str.3
	.asciz	"USB: Extra state unknown\r\n"

	.comm	_gcr_breathe,4,2                ## @gcr_breathe
	.comm	_gcr_desired,4,2                ## @gcr_desired
	.comm	_led_animation_breathing,8,3    ## @led_animation_breathing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_USB_ExtraSetState              ; -- Begin function USB_ExtraSetState
	.p2align	2
_USB_ExtraSetState:                     ; @USB_ExtraSetState
	.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, x0
Lloh0:
	adrp	x20, _USB_EXTRA_STATE_DISABLED_UNTIL_REPLUG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _USB_EXTRA_STATE_DISABLED_UNTIL_REPLUG@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _USB_EXTRA_STATE_DISABLED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _USB_EXTRA_STATE_DISABLED@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x0
	csel	x8, x9, x0, eq
Lloh4:
	adrp	x9, _usb_host_port@GOTPAGE
Lloh5:
	ldr	x9, [x9, _usb_host_port@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x9]
Lloh7:
	adrp	x9, _USB_HOST_PORT_1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _USB_HOST_PORT_1@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x9]
Lloh10:
	adrp	x9, _sr_exp_data@GOTPAGE
Lloh11:
	ldr	x9, [x9, _sr_exp_data@GOTPAGEOFF]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
	add	x10, x9, #16
	b	LBB0_4
LBB0_2:
Lloh12:
	adrp	x11, _USB_HOST_PORT_2@GOTPAGE
Lloh13:
	ldr	x11, [x11, _USB_HOST_PORT_2@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.3:
	add	x10, x9, #8
LBB0_4:
	str	x8, [x10]
	cmp	x8, #0
	cset	w8, eq
	str	w8, [x9]
	bl	_SR_EXP_WriteData
Lloh15:
	adrp	x8, _usb_extra_state@GOTPAGE
Lloh16:
	ldr	x8, [x8, _usb_extra_state@GOTPAGEOFF]
Lloh17:
	str	x19, [x8]
Lloh18:
	adrp	x8, _USB_EXTRA_STATE_ENABLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _USB_EXTRA_STATE_ENABLED@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.5:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	x8, [x21]
	cmp	x8, x19
	b.ne	LBB0_9
; %bb.7:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	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_9:
	ldr	x8, [x20]
Lloh25:
	adrp	x9, l_.str.3@PAGE
Lloh26:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh27:
	adrp	x10, l_.str.2@PAGE
Lloh28:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, x19
	csel	x0, x10, x9, eq
LBB0_10:
	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
	b	_CDC_print
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_EXTRA_STATE_DISABLED_UNTIL_REPLUG,8,3 ; @USB_EXTRA_STATE_DISABLED_UNTIL_REPLUG
	.comm	_USB_EXTRA_STATE_DISABLED,8,3   ; @USB_EXTRA_STATE_DISABLED
	.comm	_usb_host_port,8,3              ; @usb_host_port
	.comm	_USB_HOST_PORT_1,8,3            ; @USB_HOST_PORT_1
	.comm	_sr_exp_data,24,3               ; @sr_exp_data
	.comm	_USB_HOST_PORT_2,8,3            ; @USB_HOST_PORT_2
	.comm	_usb_extra_state,8,3            ; @usb_extra_state
	.comm	_USB_EXTRA_STATE_ENABLED,8,3    ; @USB_EXTRA_STATE_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB: Extra enabled\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"USB: Extra disabled\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"USB: Extra disabled until replug\r\n"

l_.str.3:                               ; @.str.3
	.asciz	"USB: Extra state unknown\r\n"

	.comm	_gcr_breathe,4,2                ; @gcr_breathe
	.comm	_gcr_desired,4,2                ; @gcr_desired
	.comm	_led_animation_breathing,8,3    ; @led_animation_breathing
.subsections_via_symbols
