	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_cdrom_register
_ide_cdrom_register:                    ## @ide_cdrom_register
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	leaq	8(%rbx), %r14
	movq	_IDE_DBG_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_ide_debug_log
	movq	_ide_cdrom_dops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movl	4(%rbx), %eax
	movl	20(%rbx), %edi
	movl	%eax, 32(%rbx)
	movl	%r15d, 8(%rbx)
	movq	%r12, 24(%rbx)
	movl	4(%r12), %esi
	callq	_strcpy
	movq	_IDE_AFLAG_NO_SPEED_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_CDC_SELECT_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
LBB0_2:
	movl	(%rbx), %eax
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_register_cdrom                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_DBG_PROBE,4,2              ## @IDE_DBG_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nslots: %d"

	.comm	_ide_cdrom_dops,4,2             ## @ide_cdrom_dops
	.comm	_IDE_AFLAG_NO_SPEED_SELECT,4,2  ## @IDE_AFLAG_NO_SPEED_SELECT
	.comm	_CDC_SELECT_SPEED,4,2           ## @CDC_SELECT_SPEED
	.no_dead_strip	_ide_cdrom_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_cdrom_register
_ide_cdrom_register:                    ; @ide_cdrom_register
	.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	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _IDE_DBG_PROBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDE_DBG_PROBE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_ide_debug_log
	mov	x19, x22
	str	w20, [x19, #8]!
Lloh5:
	adrp	x8, _ide_cdrom_dops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ide_cdrom_dops@GOTPAGEOFF]
	str	x8, [x22, #40]
	ldr	w8, [x22, #4]
	str	w8, [x22, #32]
	str	x21, [x22, #24]
	ldr	w0, [x22, #20]
	ldr	w1, [x21, #4]
	bl	_strcpy
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _IDE_AFLAG_NO_SPEED_SELECT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IDE_AFLAG_NO_SPEED_SELECT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _CDC_SELECT_SPEED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CDC_SELECT_SPEED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x22, #16]
	orr	w8, w9, w8
	str	w8, [x22, #16]
LBB0_2:
	ldr	w8, [x22]
	str	w8, [x22, #12]
	mov	x0, x19
	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	_register_cdrom
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_DBG_PROBE,4,2              ; @IDE_DBG_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nslots: %d"

	.comm	_ide_cdrom_dops,4,2             ; @ide_cdrom_dops
	.comm	_IDE_AFLAG_NO_SPEED_SELECT,4,2  ; @IDE_AFLAG_NO_SPEED_SELECT
	.comm	_CDC_SELECT_SPEED,4,2           ; @CDC_SELECT_SPEED
	.no_dead_strip	_ide_cdrom_register
.subsections_via_symbols
