	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_cfg_validate
_i2o_cfg_validate:                      ## @i2o_cfg_validate
	.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
	movq	%rdi, %r15
	callq	_i2o_find_iop
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_I2O_TIMEOUT_MESSAGE_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2o_msg_get_wait
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_FOUR_WORD_MSG_SIZE@GOTPCREL(%rip), %rax
	movq	_SGL_OFFSET_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movq	_I2O_CMD_CONFIG_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$24, %edi
	movq	_HOST_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$12, %eax
	orl	%r15d, %edi
	orl	%eax, %edi
	callq	_cpu_to_le32
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	_i2o_config_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%r12), %rcx
	movq	%rax, 16(%rcx)
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$10, %edx
	callq	_i2o_msg_post_wait
	movq	_I2O_POST_WAIT_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_osm_info
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ## @I2O_TIMEOUT_MESSAGE_GET
	.comm	_FOUR_WORD_MSG_SIZE,4,2         ## @FOUR_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ## @SGL_OFFSET_0
	.comm	_I2O_CMD_CONFIG_VALIDATE,4,2    ## @I2O_CMD_CONFIG_VALIDATE
	.comm	_HOST_TID,4,2                   ## @HOST_TID
	.comm	_i2o_config_driver,4,2          ## @i2o_config_driver
	.comm	_I2O_POST_WAIT_OK,4,2           ## @I2O_POST_WAIT_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't validate configuration, ErrorStatus = %d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_i2o_cfg_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_cfg_validate
_i2o_cfg_validate:                      ; @i2o_cfg_validate
	.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	x21, x0
	bl	_i2o_find_iop
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2o_msg_get_wait
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	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	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _FOUR_WORD_MSG_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FOUR_WORD_MSG_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SGL_OFFSET_0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SGL_OFFSET_0@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8]
Lloh11:
	adrp	x8, _I2O_CMD_CONFIG_VALIDATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2O_CMD_CONFIG_VALIDATE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _HOST_TID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HOST_TID@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w21, w8, lsl #24
	orr	w0, w8, w9, lsl #12
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #8]
Lloh17:
	adrp	x8, _i2o_config_driver@GOTPAGE
Lloh18:
	ldr	x8, [x8, _i2o_config_driver@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #16]
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #24]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #10
	bl	_i2o_msg_post_wait
	mov	x1, x0
	mov	w0, #0
Lloh20:
	adrp	x8, _I2O_POST_WAIT_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2O_POST_WAIT_OK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w1, w8
	b.eq	LBB0_7
; %bb.5:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_info
Lloh25:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ; @I2O_TIMEOUT_MESSAGE_GET
	.comm	_FOUR_WORD_MSG_SIZE,4,2         ; @FOUR_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ; @SGL_OFFSET_0
	.comm	_I2O_CMD_CONFIG_VALIDATE,4,2    ; @I2O_CMD_CONFIG_VALIDATE
	.comm	_HOST_TID,4,2                   ; @HOST_TID
	.comm	_i2o_config_driver,4,2          ; @i2o_config_driver
	.comm	_I2O_POST_WAIT_OK,4,2           ; @I2O_POST_WAIT_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't validate configuration, ErrorStatus = %d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_i2o_cfg_validate
.subsections_via_symbols
