	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idetape_create_mode_sense_cmd
_idetape_create_mode_sense_cmd:         ## @idetape_create_mode_sense_cmd
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_ide_init_pc
	movq	_MODE_SENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	movq	_IDETAPE_BLOCK_DESCRIPTOR@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movl	%ebx, 8(%rax)
	movabsq	$1095216660480, %rcx            ## imm = 0xFF00000000
	movq	%rcx, 12(%rax)
	movl	$12, 8(%r14)
	jmp	LBB0_5
LBB0_2:
	movl	$8, 4(%rax)
	movl	%ebx, 8(%rax)
	movabsq	$1095216660480, %rcx            ## imm = 0xFF00000000
	movq	%rcx, 12(%rax)
	movq	_IDETAPE_CAPABILITIES_PAGE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$24, 8(%r14)
	jmp	LBB0_5
LBB0_4:
	movl	$50, 8(%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_SENSE,4,2                 ## @MODE_SENSE
	.comm	_IDETAPE_BLOCK_DESCRIPTOR,4,2   ## @IDETAPE_BLOCK_DESCRIPTOR
	.comm	_IDETAPE_CAPABILITIES_PAGE,4,2  ## @IDETAPE_CAPABILITIES_PAGE
	.no_dead_strip	_idetape_create_mode_sense_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idetape_create_mode_sense_cmd
_idetape_create_mode_sense_cmd:         ; @idetape_create_mode_sense_cmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_ide_init_pc
Lloh0:
	adrp	x8, _MODE_SENSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_SENSE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x19]
	str	w9, [x8]
Lloh3:
	adrp	x9, _IDETAPE_BLOCK_DESCRIPTOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IDETAPE_BLOCK_DESCRIPTOR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_2
; %bb.1:
	str	w20, [x8, #8]
	movi	d0, #0x0000ff00000000
	stur	d0, [x8, #12]
	mov	w8, #12
	b	LBB0_5
LBB0_2:
	mov	w9, #8
	stp	w9, w20, [x8, #4]
	movi	d0, #0x0000ff00000000
	stur	d0, [x8, #12]
Lloh6:
	adrp	x8, _IDETAPE_CAPABILITIES_PAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDETAPE_CAPABILITIES_PAGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #24
	b	LBB0_5
LBB0_4:
	mov	w8, #50
LBB0_5:
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_SENSE,4,2                 ; @MODE_SENSE
	.comm	_IDETAPE_BLOCK_DESCRIPTOR,4,2   ; @IDETAPE_BLOCK_DESCRIPTOR
	.comm	_IDETAPE_CAPABILITIES_PAGE,4,2  ; @IDETAPE_CAPABILITIES_PAGE
	.no_dead_strip	_idetape_create_mode_sense_cmd
.subsections_via_symbols
