	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bus_remove_device              ## -- Begin function bus_remove_device
	.p2align	4, 0x90
_bus_remove_device:                     ## @bus_remove_device
	.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
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	addq	$16, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sysfs_remove_link
	movq	%rbx, %rdi
	callq	_remove_deprecated_bus_links
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sysfs_remove_link
	movq	(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_device_remove_attrs
	movq	8(%rbx), %rdi
	callq	_klist_node_attached
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_klist_del
LBB0_3:
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_device_release_driver
	movq	(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bus_put                        ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subsystem"

L_.str.1:                               ## @.str.1
	.asciz	"bus: '%s': remove device %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bus_remove_device              ; -- Begin function bus_remove_device
	.p2align	2
_bus_remove_device:                     ; @bus_remove_device
	.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	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, x0, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sysfs_remove_link
	mov	x0, x19
	bl	_remove_deprecated_bus_links
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	x20, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
	mov	x0, x20
	bl	_sysfs_remove_link
	ldr	x0, [x19]
	mov	x1, x19
	bl	_device_remove_attrs
	ldr	x0, [x19, #8]
	bl	_klist_node_attached
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_klist_del
LBB0_3:
	ldr	x8, [x19]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	mov	x0, x19
	bl	_device_release_driver
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bus_put
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subsystem"

l_.str.1:                               ; @.str.1
	.asciz	"bus: '%s': remove device %s\n"

.subsections_via_symbols
