	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcb_device_register            ## -- Begin function mcb_device_register
	.p2align	4, 0x90
_mcb_device_register:                   ## @mcb_device_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	8(%rsi), %r14
	movq	%r14, %rdi
	callq	_device_initialize
	movq	%r12, %rdi
	callq	_mcb_bus_get
	movq	_mcb_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 12(%rbx)
	movq	_mcb_release_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 36(%rbx)
	movl	(%rbx), %r15d
	movl	24(%rbx), %eax
	movl	(%r12), %edx
	movl	32(%rbx), %r8d
	movl	28(%rbx), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_dev_set_name
	movq	%r14, %rdi
	callq	_device_add
	movl	%eax, %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %ecx
	callq	_pr_err
	movl	%r14d, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mcb_bus_type,4,2               ## @mcb_bus_type
	.comm	_mcb_release_dev,4,2            ## @mcb_release_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mcb%d-16z%03d-%d:%d:%d"

L_.str.1:                               ## @.str.1
	.asciz	"Failed registering device 16z%03d on bus mcb%d (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcb_device_register            ; -- Begin function mcb_device_register
	.p2align	2
_mcb_device_register:                   ; @mcb_device_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	x21, x1
	mov	x19, x0
	add	x22, x1, #8
	mov	x0, x22
	bl	_device_initialize
	mov	x0, x19
	bl	_mcb_bus_get
Lloh0:
	adrp	x8, _mcb_bus_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mcb_bus_type@GOTPAGEOFF]
	str	x8, [x21, #16]
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x9, _mcb_release_dev@GOTPAGE
Lloh3:
	ldr	x9, [x9, _mcb_release_dev@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	ldp	w2, w8, [x19]
	str	w8, [x21, #36]
	ldr	w20, [x21]
	ldp	w5, w4, [x21, #28]
	ldr	w6, [x21, #24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x20
	bl	_dev_set_name
	mov	x0, x22
	bl	_device_add
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	mov	x21, x0
	ldr	w2, [x19]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x3, x21
	bl	_pr_err
LBB0_3:
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mcb_bus_type,4,2               ; @mcb_bus_type
	.comm	_mcb_release_dev,4,2            ; @mcb_release_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mcb%d-16z%03d-%d:%d:%d"

l_.str.1:                               ; @.str.1
	.asciz	"Failed registering device 16z%03d on bus mcb%d (%d)\n"

.subsections_via_symbols
