	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_ctrl_write32_as_16_and_16
_sd_ctrl_write32_as_16_and_16:          ## @sd_ctrl_write32_as_16_and_16
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_CTL_IRQ_MASK@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_CTL_STATUS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
LBB0_2:
	orl	(%r14), %r15d
LBB0_3:
	movb	4(%r14), %cl
	movl	%ebx, %eax
	shll	%cl, %eax
	movzwl	%r15w, %edi
	movslq	%eax, %rsi
	addq	8(%r14), %rsi
	callq	_iowrite16
	addl	$2, %ebx
	movb	4(%r14), %cl
	shll	%cl, %ebx
	sarl	$16, %r15d
	movslq	%ebx, %rsi
	addq	8(%r14), %rsi
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite16                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_IRQ_MASK,4,2               ## @CTL_IRQ_MASK
	.comm	_CTL_STATUS,4,2                 ## @CTL_STATUS
	.no_dead_strip	_sd_ctrl_write32_as_16_and_16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_ctrl_write32_as_16_and_16
_sd_ctrl_write32_as_16_and_16:          ; @sd_ctrl_write32_as_16_and_16
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CTL_IRQ_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_IRQ_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CTL_STATUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CTL_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	orr	w21, w8, w21
LBB0_2:
	and	w0, w21, #0xffff
	ldr	x8, [x19, #8]
	ldr	w9, [x19, #4]
	lsl	w9, w20, w9
	add	x1, x8, w9, sxtw
	bl	_iowrite16
	asr	w0, w21, #16
	ldr	x8, [x19, #8]
	add	w9, w20, #2
	ldr	w10, [x19, #4]
	lsl	w9, w9, w10
	add	x1, x8, w9, sxtw
	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	_iowrite16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_IRQ_MASK,4,2               ; @CTL_IRQ_MASK
	.comm	_CTL_STATUS,4,2                 ; @CTL_STATUS
	.no_dead_strip	_sd_ctrl_write32_as_16_and_16
.subsections_via_symbols
