	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtaspci_write_config
_rtaspci_write_config:                  ## @rtaspci_write_config
	.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	%r9d, %r15d
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movl	%esi, %r14d
	callq	_device_get_softc
	movzbl	%r14b, %ecx
	shll	$16, %ecx
	shll	$11, %r13d
	movzwl	%r13w, %edx
	orl	%ecx, %edx
	andl	$7, %ebx
	shll	$8, %ebx
	orl	%edx, %ebx
	movzbl	%r12b, %edx
	orl	%ebx, %edx
	shll	$16, %r12d
	andl	$251658240, %r12d               ## imm = 0xF000000
	xorl	%ecx, %ecx
	cmpq	$0, 16(%rax)
	cmovnel	%r12d, %ecx
	orl	%edx, %ecx
	movl	(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.1:
	movl	8(%rax), %r9d
	movl	12(%rax), %r8d
	subq	$8, %rsp
	leaq	-44(%rbp), %rbx
	movl	$5, %esi
	movl	$1, %edx
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r15
	movl	16(%rbp), %ebx
	pushq	%rbx
	callq	_rtas_call_method
	addq	$32, %rsp
	jmp	LBB0_3
LBB0_2:
	movl	4(%rax), %edi
	subq	$8, %rsp
	leaq	-44(%rbp), %rbx
	movl	$3, %esi
	movl	$1, %edx
	movl	16(%rbp), %r8d
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r15d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	callq	_rtas_call_method
	addq	$16, %rsp
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rtaspci_write_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtaspci_write_config
_rtaspci_write_config:                  ; @rtaspci_write_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	bl	_device_get_softc
	ubfiz	w8, w24, #16, #8
	bfi	w8, w23, #11, #5
	bfi	w8, w22, #8, #3
	bfxil	w8, w21, #0, #8
	ldr	x9, [x0, #16]
	lsl	w10, w21, #16
	and	w10, w10, #0xf000000
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w3, w8, w9
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	ldp	w5, w4, [x0, #8]
	add	x9, sp, #28
	stp	x20, x9, [sp, #8]
	str	x19, [sp]
	mov	x0, x8
	mov	w1, #5
	mov	w2, #1
	b	LBB0_3
LBB0_2:
	ldr	w0, [x0, #4]
	add	x8, sp, #28
	str	x8, [sp]
	mov	w1, #3
	mov	w2, #1
	mov	x4, x19
	mov	x5, x20
LBB0_3:
	bl	_rtas_call_method
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rtaspci_write_config
.subsections_via_symbols
