	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_bar_create_            ## -- Begin function nouveau_bar_create_
	.p2align	4, 0x90
_nouveau_bar_create_:                   ## @nouveau_bar_create_
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_nv_device
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r8
	leaq	L_.str.1(%rip), %r9
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	pushq	%r15
	pushq	%r12
	callq	_nouveau_subdev_create_
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %r15
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movl	$3, %esi
	callq	_pci_resource_start
	movl	%eax, %r14d
	movl	(%r12), %edi
	movl	$3, %esi
	callq	_pci_resource_len
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ioremap
	movl	%eax, (%r15)
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BARCTL"

L_.str.1:                               ## @.str.1
	.asciz	"bar"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_bar_create_            ; -- Begin function nouveau_bar_create_
	.p2align	2
_nouveau_bar_create_:                   ; @nouveau_bar_create_
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_nv_device
	mov	x19, x0
Lloh0:
	adrp	x4, l_.str@PAGE
Lloh1:
	add	x4, x4, l_.str@PAGEOFF
Lloh2:
	adrp	x5, l_.str.1@PAGE
Lloh3:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	w3, #0
	mov	x6, x20
	mov	x7, x21
	bl	_nouveau_subdev_create_
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x22, [x21]
	ldr	w0, [x19]
	mov	w1, #3
	bl	_pci_resource_start
	mov	x21, x0
	ldr	w0, [x19]
	mov	w1, #3
	bl	_pci_resource_len
	mov	x1, x0
	mov	x0, x21
	bl	_ioremap
	str	w0, [x22]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BARCTL"

l_.str.1:                               ; @.str.1
	.asciz	"bar"

.subsections_via_symbols
