	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcb_alloc_bus                  ## -- Begin function mcb_alloc_bus
	.p2align	4, 0x90
_mcb_alloc_bus:                         ## @mcb_alloc_bus
	.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), %rbx
	movl	(%rbx), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	(%rbx), %ecx
	movq	_mcb_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	%ebx, (%r15)
	movq	%r14, %rdi
	callq	_get_device
	movl	%eax, 40(%r15)
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_device_initialize
	movq	%r14, 32(%r15)
	movq	_mcb_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_mcb_carrier_device_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_mcb_free_bus@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_set_name
	movq	%r12, %rdi
	callq	_device_add
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_put_device
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mcb_ida,4,2                    ## @mcb_ida
	.comm	_mcb_bus_type,4,2               ## @mcb_bus_type
	.comm	_mcb_carrier_device_type,4,2    ## @mcb_carrier_device_type
	.comm	_mcb_free_bus,4,2               ## @mcb_free_bus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mcb:%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcb_alloc_bus                  ; -- Begin function mcb_alloc_bus
	.p2align	2
_mcb_alloc_bus:                         ; @mcb_alloc_bus
	.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	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w3, [x21]
Lloh2:
	adrp	x0, _mcb_ida@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mcb_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
; %bb.2:
	str	w21, [x20]
	mov	x0, x19
	bl	_get_device
	str	w0, [x20, #40]
	add	x22, x20, #8
	mov	x0, x22
	bl	_device_initialize
Lloh4:
	adrp	x8, _mcb_bus_type@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mcb_bus_type@GOTPAGEOFF]
	stp	x8, x19, [x20, #24]
Lloh6:
	adrp	x8, _mcb_carrier_device_type@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mcb_carrier_device_type@GOTPAGEOFF]
Lloh8:
	adrp	x9, _mcb_free_bus@GOTPAGE
Lloh9:
	ldr	x9, [x9, _mcb_free_bus@GOTPAGEOFF]
	stp	x9, x8, [x20, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_set_name
	mov	x0, x22
	bl	_device_add
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_put_device
	mov	x0, x20
	bl	_kfree
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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
	b	_ERR_PTR
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mcb_ida,4,2                    ; @mcb_ida
	.comm	_mcb_bus_type,4,2               ; @mcb_bus_type
	.comm	_mcb_carrier_device_type,4,2    ; @mcb_carrier_device_type
	.comm	_mcb_free_bus,4,2               ; @mcb_free_bus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mcb:%d"

.subsections_via_symbols
