	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_addressing
_set_addressing:                        ## @set_addressing
	.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
	cmpl	$3, %esi
	jb	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_9
## %bb.4:
	movq	8(%r14), %rax
	movq	_IDE_HFLAG_NO_LBA48@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_5:
	movl	4(%r14), %edi
	callq	_ata_id_lba48_enabled
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	testl	$-3, %ebx
	je	LBB0_9
## %bb.8:
	movq	_IDE_DFLAG_LBA48@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_10
LBB0_9:
	movq	_IDE_DFLAG_LBA48@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IDE_HFLAG_NO_LBA48,4,2         ## @IDE_HFLAG_NO_LBA48
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IDE_DFLAG_LBA48,4,2            ## @IDE_DFLAG_LBA48
	.no_dead_strip	_set_addressing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_addressing
_set_addressing:                        ; @set_addressing
	.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
	cmp	w1, #3
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	cbz	w1, LBB0_9
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _IDE_HFLAG_NO_LBA48@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IDE_HFLAG_NO_LBA48@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_ata_id_lba48_enabled
	cbz	x0, LBB0_4
; %bb.7:
	tst	w20, #0xfffffffd
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #0
Lloh7:
	adrp	x8, _IDE_DFLAG_LBA48@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IDE_DFLAG_LBA48@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
Lloh10:
	adrp	x8, _IDE_DFLAG_LBA48@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IDE_DFLAG_LBA48@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_10:
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IDE_HFLAG_NO_LBA48,4,2         ; @IDE_HFLAG_NO_LBA48
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IDE_DFLAG_LBA48,4,2            ; @IDE_DFLAG_LBA48
	.no_dead_strip	_set_addressing
.subsections_via_symbols
