	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_alternate
_set_alternate:                         ## @set_alternate
	.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
	movl	%esi, %r14d
	movl	(%rdi), %esi
	xorl	%eax, %eax
	cmpl	%r14d, %esi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_USBIF_CMDONLY@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	cmpl	%edx, %esi
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	(%r15), %edx
	callq	_usb_set_interface
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	(%r15), %esi
LBB0_4:
	cmpl	%r14d, %esi
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_DBG
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	%r14d, %edx
	callq	_usb_set_interface
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USBIF_CMDONLY,4,2              ## @USBIF_CMDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changing from alt %d to %d\n"

	.no_dead_strip	_set_alternate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_alternate
_set_alternate:                         ; @set_alternate
	.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, x1
	ldr	w1, [x0]
	cmp	w1, w19
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x20, x0
Lloh0:
	adrp	x21, _USBIF_CMDONLY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _USBIF_CMDONLY@GOTPAGEOFF]
	ldr	w2, [x21]
	cmp	w1, w2
	b.eq	LBB0_5
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldp	w1, w0, [x20, #8]
	ldr	w2, [x21]
	bl	_usb_set_interface
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w1, [x21]
LBB0_5:
	cmp	w1, w19
	b.eq	LBB0_7
; %bb.6:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DBG
	ldp	w1, w0, [x20, #8]
	mov	x2, x19
	bl	_usb_set_interface
	cbnz	w0, LBB0_8
LBB0_7:
	mov	w0, #0
	ldr	w8, [x20]
	stp	w19, w8, [x20]
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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_USBIF_CMDONLY,4,2              ; @USBIF_CMDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changing from alt %d to %d\n"

	.no_dead_strip	_set_alternate
.subsections_via_symbols
