	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_driver_lstate                  ## -- Begin function driver_lstate
	.p2align	4, 0x90
_driver_lstate:                         ## @driver_lstate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	movq	_HLS_DOWN@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_IB_PORT_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_HLS_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	cmpl	$130, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.7:
	movq	_IB_PORT_INIT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movq	_IB_PORT_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	_IB_PORT_ARMED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_10:
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dd_dev_err
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HLS_DOWN,4,2                   ## @HLS_DOWN
	.comm	_IB_PORT_DOWN,4,2               ## @IB_PORT_DOWN
	.comm	_HLS_UP,4,2                     ## @HLS_UP
	.comm	_IB_PORT_INIT,4,2               ## @IB_PORT_INIT
	.comm	_IB_PORT_ARMED,4,2              ## @IB_PORT_ARMED
	.comm	_IB_PORT_ACTIVE,4,2             ## @IB_PORT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid host_link_state 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_driver_lstate                  ; -- Begin function driver_lstate
	.p2align	2
_driver_lstate:                         ; @driver_lstate
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w2, [x0]
	cbz	w2, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _HLS_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HLS_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _IB_PORT_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PORT_DOWN@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x8, _HLS_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HLS_UP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w2
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.6:
Lloh8:
	adrp	x8, _IB_PORT_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_PORT_INIT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _IB_PORT_ACTIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IB_PORT_ACTIVE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _IB_PORT_ARMED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_PORT_ARMED@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x0, #4]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dd_dev_err
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HLS_DOWN,4,2                   ; @HLS_DOWN
	.comm	_IB_PORT_DOWN,4,2               ; @IB_PORT_DOWN
	.comm	_HLS_UP,4,2                     ; @HLS_UP
	.comm	_IB_PORT_INIT,4,2               ; @IB_PORT_INIT
	.comm	_IB_PORT_ARMED,4,2              ; @IB_PORT_ARMED
	.comm	_IB_PORT_ACTIVE,4,2             ; @IB_PORT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid host_link_state 0x%x\n"

.subsections_via_symbols
