	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_usb_disconnect
_em28xx_usb_disconnect:                 ## @em28xx_usb_disconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_usb_get_intfdata
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, (%rax)
	movq	24(%rbx), %rdi
	movl	16(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_3:
	movl	$1, (%rbx)
	movq	24(%rbx), %rdi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_flush_request_modules
	movq	%rbx, %rdi
	callq	_em28xx_close_extension
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_em28xx_release_resources
LBB0_5:
	movq	%rbx, %rdi
	callq	_em28xx_release_resources
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	addq	$4, %rdi
	movq	_em28xx_free_device@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kref_put
	movq	$0, 8(%rbx)
LBB0_7:
	addq	$4, %rbx
	movq	_em28xx_free_device@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kref_put                       ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disconnecting %s\n"

	.comm	_em28xx_free_device,4,2         ## @em28xx_free_device
	.no_dead_strip	_em28xx_usb_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_usb_disconnect
_em28xx_usb_disconnect:                 ; @em28xx_usb_disconnect
	.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
	mov	x20, x0
	bl	_usb_get_intfdata
	mov	x19, x0
	mov	x0, x20
	mov	x1, #0
	bl	_usb_set_intfdata
	cbz	x19, LBB0_8
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w9, #1
	str	w9, [x8]
	ldr	x0, [x19, #24]
	ldr	w2, [x8, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_3:
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #24]
	ldr	w2, [x19, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_flush_request_modules
	mov	x0, x19
	bl	_em28xx_close_extension
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_em28xx_release_resources
LBB0_5:
	mov	x0, x19
	bl	_em28xx_release_resources
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x20, _em28xx_free_device@GOTPAGE
Lloh5:
	ldr	x20, [x20, _em28xx_free_device@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
	add	x0, x8, #4
	ldr	w1, [x20]
	bl	_kref_put
	str	xzr, [x19, #8]
LBB0_7:
	add	x0, x19, #4
	ldr	w1, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kref_put
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disconnecting %s\n"

	.comm	_em28xx_free_device,4,2         ; @em28xx_free_device
	.no_dead_strip	_em28xx_usb_disconnect
.subsections_via_symbols
