	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_set_ignore_cable
_ide_set_ignore_cable:                  ## @ide_set_ignore_cable
	.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, %r14
	movl	$1, -20(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_2
LBB0_3:
	movl	-24(%rbp), %ecx
	movq	_MAX_HWIFS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_6
## %bb.4:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	js	LBB0_6
## %bb.5:
	cmpl	$2, %edx
	jge	LBB0_6
## %bb.7:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	testl	%edx, %edx
	je	LBB0_9
## %bb.8:
	movq	_ide_ignore_cable@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	notl	%eax
	movq	_ide_ignore_cable@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_10:
	movq	_ide_ignore_cable@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d:%d"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_HWIFS,4,2                  ## @MAX_HWIFS
	.comm	_ide_ignore_cable,4,2           ## @ide_ignore_cable
	.no_dead_strip	_ide_set_ignore_cable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_set_ignore_cable
_ide_set_ignore_cable:                  ; @ide_set_ignore_cable
	.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	x19, x0
	mov	w8, #1
	str	w8, [sp, #8]
	add	x8, sp, #8
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_7
LBB0_2:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _MAX_HWIFS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAX_HWIFS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.3:
	ldr	w9, [sp, #8]
	tbnz	w9, #31, LBB0_7
; %bb.4:
	cmp	w9, #2
	b.ge	LBB0_7
; %bb.5:
	mov	w10, #1
	lsl	w10, w10, w8
Lloh7:
	adrp	x8, _ide_ignore_cable@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ide_ignore_cable@GOTPAGEOFF]
	cbz	w9, LBB0_8
; %bb.6:
	ldr	w9, [x8]
	orr	w9, w9, w10
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	ldr	w9, [x8]
	bic	w9, w9, w10
LBB0_9:
	mov	w0, #0
	str	w9, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d:%d"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_HWIFS,4,2                  ; @MAX_HWIFS
	.comm	_ide_ignore_cable,4,2           ; @ide_ignore_cable
	.no_dead_strip	_ide_set_ignore_cable
.subsections_via_symbols
