	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bus_remove_driver              ## -- Begin function bus_remove_driver
	.p2align	4, 0x90
_bus_remove_driver:                     ## @bus_remove_driver
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	cmpl	$0, 20(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_remove_bind_files
	movq	(%rbx), %rdi
LBB0_3:
	movq	%rbx, %rsi
	callq	_driver_remove_attrs
	movq	_driver_attr_uevent@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_driver_remove_file
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_klist_remove
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_driver_detach
	movq	%rbx, %rdi
	callq	_module_remove_driver
	movq	8(%rbx), %rdi
	callq	_kobject_put
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bus_put                        ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_driver_attr_uevent,4,2         ## @driver_attr_uevent
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bus: '%s': remove driver %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bus_remove_driver              ; -- Begin function bus_remove_driver
	.p2align	2
_bus_remove_driver:                     ; @bus_remove_driver
	.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	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_remove_bind_files
	ldr	x0, [x19]
LBB0_3:
	mov	x1, x19
	bl	_driver_remove_attrs
Lloh0:
	adrp	x1, _driver_attr_uevent@GOTPAGE
Lloh1:
	ldr	x1, [x1, _driver_attr_uevent@GOTPAGEOFF]
	mov	x0, x19
	bl	_driver_remove_file
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_klist_remove
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_driver_detach
	mov	x0, x19
	bl	_module_remove_driver
	ldr	x0, [x19, #8]
	bl	_kobject_put
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_driver_attr_uevent,4,2         ; @driver_attr_uevent
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bus: '%s': remove driver %s\n"

.subsections_via_symbols
