	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_port_liodn
_set_port_liodn:                        ## @set_port_liodn
	.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
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movslq	%ecx, %rbx
	shlq	$2, %rbx
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_ioread32be
	movq	_DMA_LIODN_BASE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testb	$1, %r12b
	jne	LBB0_1
## %bb.2:
	movq	_DMA_LIODN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %eax
	shll	%cl, %r13d
	jmp	LBB0_3
LBB0_1:
	notl	%edx
	andl	%edx, %eax
LBB0_3:
	orl	%r13d, %eax
	movq	8(%r15), %rcx
	addq	(%rcx), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_iowrite32be
	movq	(%r15), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$-4, %rsi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32be                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_LIODN_BASE_MASK,4,2        ## @DMA_LIODN_BASE_MASK
	.comm	_DMA_LIODN_SHIFT,4,2            ## @DMA_LIODN_SHIFT
	.no_dead_strip	_set_port_liodn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_port_liodn
_set_port_liodn:                        ; @set_port_liodn
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cmp	w1, #0
	cinc	w9, w1, lt
	asr	w10, w9, #1
	sbfx	x23, x9, #1, #31
	add	x0, x8, w10, sxtw #2
	bl	_ioread32be
Lloh0:
	adrp	x8, _DMA_LIODN_BASE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_LIODN_BASE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tbnz	w20, #0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _DMA_LIODN_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_LIODN_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	bic	w8, w0, w8
	lsl	w9, w22, w9
	orr	w0, w8, w9
	b	LBB0_3
LBB0_2:
	bic	w8, w0, w8
	orr	w0, w8, w22
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	add	x1, x8, x23, lsl #2
	bl	_iowrite32be
	ldr	x8, [x21]
	ldr	x8, [x8]
	sub	w9, w20, #1
	add	x1, x8, w9, sxtw #2
	mov	x0, x19
	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
	b	_iowrite32be
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_LIODN_BASE_MASK,4,2        ; @DMA_LIODN_BASE_MASK
	.comm	_DMA_LIODN_SHIFT,4,2            ; @DMA_LIODN_SHIFT
	.no_dead_strip	_set_port_liodn
.subsections_via_symbols
