	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_drive_art_rwp
_config_drive_art_rwp:                  ## @config_drive_art_rwp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	movl	$0, -20(%rbp)
	leaq	-20(%rbp), %rdx
	movq	%rax, %rdi
	movl	$75, %esi
	callq	_pci_read_config_byte
	movb	(%rbx), %cl
	movl	$17, %edx
	shll	%cl, %edx
	movl	-20(%rbp), %eax
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	8(%rbx), %rsi
	movq	_ide_disk@GOTPCREL(%rip), %rdi
	orl	%eax, %edx
	cmpq	(%rdi), %rsi
	cmovnel	%ecx, %edx
	cmpl	%edx, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$75, %esi
	callq	_pci_write_config_byte
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ide_disk,8,3                   ## @ide_disk
	.no_dead_strip	_config_drive_art_rwp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_drive_art_rwp
_config_drive_art_rwp:                  ; @config_drive_art_rwp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_to_pci_dev
	mov	x19, x0
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	w1, #75
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	mov	w10, #17
	lsl	w9, w10, w9
	bic	w10, w8, w9
Lloh0:
	adrp	x11, _ide_disk@GOTPAGE
Lloh1:
	ldr	x11, [x11, _ide_disk@GOTPAGEOFF]
	ldr	x12, [x20, #8]
Lloh2:
	ldr	x11, [x11]
	orr	w9, w9, w8
	cmp	x12, x11
	csel	w2, w9, w10, eq
	cmp	w8, w2
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #75
	bl	_pci_write_config_byte
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ide_disk,8,3                   ; @ide_disk
	.no_dead_strip	_config_drive_art_rwp
.subsections_via_symbols
