	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dev_set_geometry
_dev_set_geometry:                      ## @dev_set_geometry
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movslq	(%rsi), %rbx
	movq	%rsi, %rdi
	callq	_find_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	addq	%r12, %rbx
	cmpq	8(%r12), %rbx
	jb	LBB0_3
## %bb.2:
	addq	%r12, %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_invalid_str
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	callq	_DMWARN
LBB0_5:
	movq	%r15, %rdi
	callq	_dm_put
	jmp	LBB0_7
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %r14d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.8:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	-72(%rbp), %rcx
	leaq	-64(%rbp), %r8
	leaq	-56(%rbp), %r9
	leaq	-81(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$4, %eax
	jne	LBB0_15
## %bb.10:
	movq	-80(%rbp), %rax
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	ja	LBB0_14
## %bb.11:
	movq	-72(%rbp), %rcx
	cmpq	$255, %rcx
	ja	LBB0_14
## %bb.12:
	movq	-64(%rbp), %rdx
	cmpq	$255, %rdx
	ja	LBB0_14
## %bb.13:
	movq	-56(%rbp), %rsi
	movq	_ULONG_MAX@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jbe	LBB0_16
LBB0_14:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_4
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_16:
	movq	%rax, -120(%rbp)
	movq	%rcx, -112(%rbp)
	movq	%rdx, -104(%rbp)
	movq	%rsi, -96(%rbp)
	leaq	-120(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dm_set_geometry
	movl	%eax, %r14d
	movq	$0, 16(%r12)
	jmp	LBB0_5
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid geometry supplied."

L_.str.1:                               ## @.str.1
	.asciz	"%lu %lu %lu %lu%c"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to interpret geometry settings."

	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
L_.str.3:                               ## @.str.3
	.asciz	"Geometry exceeds range limits."

	.no_dead_strip	_dev_set_geometry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dev_set_geometry
_dev_set_geometry:                      ; @dev_set_geometry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldrsw	x22, [x1]
	mov	x0, x1
	bl	_find_device
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	neg	w20, w20
	ldr	x8, [x21, #8]
	add	x22, x21, x22
	cmp	x22, x8
	b.lo	LBB0_3
; %bb.2:
	add	x1, x21, x23
	mov	x0, x22
	bl	_invalid_str
	cbz	x0, LBB0_9
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_DMWARN
LBB0_5:
	mov	x0, x19
	bl	_dm_put
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.8:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
	add	x8, sp, #40
	add	x3, x8, #8
	add	x4, x8, #16
	add	x5, x8, #24
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #40
	add	x6, sp, #7
	mov	x0, x22
	bl	_sscanf
	cmp	w0, #4
	b.ne	LBB0_15
; %bb.10:
	ldr	x8, [sp, #40]
	lsr	x9, x8, #16
	cbnz	x9, LBB0_14
; %bb.11:
	ldr	x9, [sp, #48]
	cmp	x9, #255
	b.hi	LBB0_14
; %bb.12:
	ldr	x10, [sp, #56]
	cmp	x10, #255
	b.hi	LBB0_14
; %bb.13:
	ldr	x11, [sp, #64]
Lloh16:
	adrp	x12, _ULONG_MAX@GOTPAGE
Lloh17:
	ldr	x12, [x12, _ULONG_MAX@GOTPAGEOFF]
Lloh18:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ls	LBB0_16
LBB0_14:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_15:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_16:
	stp	x8, x9, [sp, #8]
	stp	x10, x11, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_dm_set_geometry
	mov	x20, x0
	str	xzr, [x21, #16]
	b	LBB0_5
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid geometry supplied."

l_.str.1:                               ; @.str.1
	.asciz	"%lu %lu %lu %lu%c"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to interpret geometry settings."

	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
l_.str.3:                               ; @.str.3
	.asciz	"Geometry exceeds range limits."

	.no_dead_strip	_dev_set_geometry
.subsections_via_symbols
