	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bus_register                   ## -- Begin function bus_register
	.p2align	4, 0x90
_bus_register:                          ## @bus_register
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 56(%rax)
	movq	%rax, (%r14)
	leaq	48(%rax), %rdi
	callq	_BLOCKING_INIT_NOTIFIER_HEAD
	leaq	8(%rbx), %r12
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_kobject_set_name
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	movq	_bus_kset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_bus_ktype@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	$1, (%rbx)
	movq	%r12, %rdi
	callq	_kset_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	movq	_bus_attr_uevent@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_bus_create_file
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_kset_create_and_add
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_kset_create_and_add
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	44(%rbx), %rdi
	movq	_klist_devices_get@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_klist_devices_put@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_klist_init
	addq	$40, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_klist_init
	movq	%r14, %rdi
	callq	_add_probe_files
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_bus_add_attrs
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_remove_probe_files
LBB0_13:
	movq	(%r14), %rax
	movq	32(%rax), %rdi
	callq	_kset_unregister
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_14:
	movq	(%r14), %rax
	movq	24(%rax), %rdi
	callq	_kset_unregister
LBB0_15:
	movq	_bus_attr_uevent@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_bus_remove_file
LBB0_16:
	movq	(%r14), %rdi
	addq	$8, %rdi
	callq	_kset_unregister
	movq	(%r14), %rdi
	callq	_kfree
LBB0_17:
	movq	$0, (%r14)
LBB0_18:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	8(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_debug
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_bus_kset,4,2                   ## @bus_kset
	.comm	_bus_ktype,4,2                  ## @bus_ktype
	.comm	_bus_attr_uevent,4,2            ## @bus_attr_uevent
L_.str.1:                               ## @.str.1
	.asciz	"devices"

L_.str.2:                               ## @.str.2
	.asciz	"drivers"

	.comm	_klist_devices_get,8,3          ## @klist_devices_get
	.comm	_klist_devices_put,8,3          ## @klist_devices_put
L_.str.3:                               ## @.str.3
	.asciz	"bus: '%s': registered\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bus_register                   ; -- Begin function bus_register
	.p2align	2
_bus_register:                          ; @bus_register
	.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	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #56]
	str	x0, [x19]
	add	x0, x0, #48
	bl	_BLOCKING_INIT_NOTIFIER_HEAD
	add	x22, x20, #8
	ldr	w2, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_kobject_set_name
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.2:
Lloh5:
	adrp	x8, _bus_kset@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bus_kset@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh8:
	adrp	x8, _bus_ktype@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bus_ktype@GOTPAGEOFF]
	str	x8, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x22
	bl	_kset_register
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.3:
Lloh10:
	adrp	x1, _bus_attr_uevent@GOTPAGE
Lloh11:
	ldr	x1, [x1, _bus_attr_uevent@GOTPAGEOFF]
	mov	x0, x19
	bl	_bus_create_file
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.4:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, #0
	mov	x2, x22
	bl	_kset_create_and_add
	str	x0, [x20, #24]
	cbz	x0, LBB0_11
; %bb.5:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, #0
	mov	x2, x22
	bl	_kset_create_and_add
	str	x0, [x20, #32]
	cbz	x0, LBB0_12
; %bb.6:
	add	x0, x20, #44
Lloh16:
	adrp	x8, _klist_devices_get@GOTPAGE
Lloh17:
	ldr	x8, [x8, _klist_devices_get@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
Lloh19:
	adrp	x8, _klist_devices_put@GOTPAGE
Lloh20:
	ldr	x8, [x8, _klist_devices_put@GOTPAGEOFF]
Lloh21:
	ldr	x2, [x8]
	bl	_klist_init
	add	x0, x20, #40
	mov	x1, #0
	mov	x2, #0
	bl	_klist_init
	mov	x0, x19
	bl	_add_probe_files
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_bus_add_attrs
	mov	x21, x0
	cbz	w0, LBB0_18
; %bb.8:
	mov	x0, x19
	bl	_remove_probe_files
LBB0_9:
	ldr	x8, [x19]
	ldr	x0, [x8, #32]
	bl	_kset_unregister
	b	LBB0_13
LBB0_10:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_11:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_12:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	ldr	x8, [x19]
	ldr	x0, [x8, #24]
	bl	_kset_unregister
LBB0_14:
Lloh31:
	adrp	x1, _bus_attr_uevent@GOTPAGE
Lloh32:
	ldr	x1, [x1, _bus_attr_uevent@GOTPAGEOFF]
	mov	x0, x19
	bl	_bus_remove_file
LBB0_15:
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_kset_unregister
	ldr	x0, [x19]
	bl	_kfree
LBB0_16:
	str	xzr, [x19]
LBB0_17:
	mov	x0, x21
	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_18:
	ldr	w1, [x19, #8]
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_bus_kset,4,2                   ; @bus_kset
	.comm	_bus_ktype,4,2                  ; @bus_ktype
	.comm	_bus_attr_uevent,4,2            ; @bus_attr_uevent
l_.str.1:                               ; @.str.1
	.asciz	"devices"

l_.str.2:                               ; @.str.2
	.asciz	"drivers"

	.comm	_klist_devices_get,8,3          ; @klist_devices_get
	.comm	_klist_devices_put,8,3          ; @klist_devices_put
l_.str.3:                               ; @.str.3
	.asciz	"bus: '%s': registered\n"

.subsections_via_symbols
