	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nx_set_dma_mask
_nx_set_dma_mask:                       ## @nx_set_dma_mask
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	$0, (%rdi)
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	callq	_NX_IS_REVISION_P2
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$35, %edi
	callq	_DMA_BIT_MASK
	jmp	LBB0_3
LBB0_2:
	movl	$39, %edi
	callq	_DMA_BIT_MASK
	movl	%eax, %r15d
LBB0_3:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pci_set_consistent_dma_mask
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_nx_set_dma_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nx_set_dma_mask
_nx_set_dma_mask:                       ; @nx_set_dma_mask
	.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
	ldr	x20, [x0, #8]
	str	wzr, [x0]
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_NX_IS_REVISION_P2
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #35
	bl	_DMA_BIT_MASK
	mov	x1, x0
	b	LBB0_3
LBB0_2:
	mov	w0, #39
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x21, x0
LBB0_3:
	mov	x0, x20
	bl	_pci_set_dma_mask
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_pci_set_consistent_dma_mask
	cbz	x0, LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_nx_set_dma_mask
.subsections_via_symbols
