	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_bf_area
_map_bf_area:                           ## @map_bf_area
	.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, %rbx
	callq	_mlx4_priv
	cmpl	$0, 4(%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_pci_resource_start
	movl	(%rbx), %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	shll	%cl, %edx
	movslq	%edx, %r15
	addq	%rax, %r15
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_pci_resource_len
	movl	(%rbx), %edx
	movb	(%r12), %cl
	shll	%cl, %edx
	movslq	%edx, %rcx
	subq	%rcx, %rax
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_io_mapping_create_wc
	movl	%eax, %ecx
	movl	%eax, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testl	%ecx, %ecx
	cmovnel	%edx, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_map_bf_area
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_bf_area
_map_bf_area:                           ; @map_bf_area
	.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	x20, x0
	bl	_mlx4_priv
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	mov	w1, #2
	bl	_pci_resource_start
Lloh0:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	w9, [x22]
	lsl	w8, w8, w9
	add	x21, x0, w8, sxtw
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	mov	w1, #2
	bl	_pci_resource_len
	ldr	w8, [x20]
	ldr	w9, [x22]
	lsl	w8, w8, w9
	sub	x1, x0, w8, sxtw
	mov	x0, x21
	bl	_io_mapping_create_wc
	str	w0, [x19]
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, ne
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_map_bf_area
.subsections_via_symbols
