	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_armed_to_active
_set_armed_to_active:                   ## @set_armed_to_active
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movl	8(%rsi), %edi
	callq	_rhf_rcv_type
	movq	_RHF_RCV_TYPE_IB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_hfi1_get_msgheader
	movl	8(%rbx), %esi
	movq	%rax, %rdi
	callq	_hfi1_9B_get_sc5
	jmp	LBB0_5
LBB0_2:
	movq	_RHF_RCV_TYPE_BYPASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_hfi1_get_16B_header
	movq	%rax, %rdi
	callq	_hfi1_16B_get_sc
	jmp	LBB0_5
LBB0_3:
	movq	_SC15_PACKET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	movq	_SC15_PACKET@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.6:
	movq	(%r12), %rdi
	callq	_driver_lstate
	movq	_IB_PORT_ACTIVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	addq	$4, %r15
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_queue_work
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %edi
	callq	_opa_lstate_name
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dd_dev_info
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC15_PACKET,8,3                ## @SC15_PACKET
	.comm	_RHF_RCV_TYPE_IB,8,3            ## @RHF_RCV_TYPE_IB
	.comm	_RHF_RCV_TYPE_BYPASS,8,3        ## @RHF_RCV_TYPE_BYPASS
	.comm	_IB_PORT_ACTIVE,4,2             ## @IB_PORT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected link state %s\n"

	.no_dead_strip	_set_armed_to_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_armed_to_active
_set_armed_to_active:                   ; @set_armed_to_active
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	w0, [x1, #8]
	bl	_rhf_rcv_type
Lloh0:
	adrp	x8, _RHF_RCV_TYPE_IB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RHF_RCV_TYPE_IB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _SC15_PACKET@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SC15_PACKET@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	w1, w0, [x21]
	bl	_hfi1_get_msgheader
	ldr	w1, [x21, #8]
	bl	_hfi1_9B_get_sc5
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _RHF_RCV_TYPE_BYPASS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RHF_RCV_TYPE_BYPASS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	w1, w0, [x21]
	bl	_hfi1_get_16B_header
	bl	_hfi1_16B_get_sc
	b	LBB0_5
LBB0_4:
	ldr	x0, [x23]
LBB0_5:
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.6:
	ldr	x0, [x20]
	bl	_driver_lstate
Lloh8:
	adrp	x8, _IB_PORT_ACTIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_PORT_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
	add	x1, x22, #4
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_queue_work
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	bl	_opa_lstate_name
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dd_dev_info
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SC15_PACKET,8,3                ; @SC15_PACKET
	.comm	_RHF_RCV_TYPE_IB,8,3            ; @RHF_RCV_TYPE_IB
	.comm	_RHF_RCV_TYPE_BYPASS,8,3        ; @RHF_RCV_TYPE_BYPASS
	.comm	_IB_PORT_ACTIVE,4,2             ; @IB_PORT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected link state %s\n"

	.no_dead_strip	_set_armed_to_active
.subsections_via_symbols
