	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfa_iocpf_sm_semwait
_bfa_iocpf_sm_semwait:                  ## @bfa_iocpf_sm_semwait
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	cmpl	$128, %esi
	je	LBB0_7
## %bb.1:
	cmpl	$130, %esi
	je	LBB0_8
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_9
## %bb.3:
	movq	%r14, %rdi
	callq	_bfa_ioc_sync_complete
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_bfa_ioc_sync_join
	movq	_bfa_iocpf_sm_hwinit@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_bfa_iocpf_sm_fail@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bfa_fsm_set_state
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bfa_ioc_pf_hwfailed            ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	callq	_bfa_ioc_hw_sem_get_cancel
	movq	_bfa_iocpf_sm_disabling_sync@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bfa_fsm_set_state              ## TAILCALL
LBB0_9:
	movl	%esi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bfa_sm_fault                   ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_bfa_nw_ioc_hw_sem_release
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_BFA_IOC_HWSEM_TOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bfa_iocpf_sm_hwinit,4,2        ## @bfa_iocpf_sm_hwinit
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_BFA_IOC_HWSEM_TOV,4,2          ## @BFA_IOC_HWSEM_TOV
	.comm	_bfa_iocpf_sm_fail,4,2          ## @bfa_iocpf_sm_fail
	.comm	_bfa_iocpf_sm_disabling_sync,4,2 ## @bfa_iocpf_sm_disabling_sync
	.no_dead_strip	_bfa_iocpf_sm_semwait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfa_iocpf_sm_semwait
_bfa_iocpf_sm_semwait:                  ; @bfa_iocpf_sm_semwait
	.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
	mov	x20, x0
	ldr	x19, [x0]
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w1, #129
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_bfa_ioc_sync_complete
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_bfa_ioc_sync_join
Lloh0:
	adrp	x8, _bfa_iocpf_sm_hwinit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bfa_iocpf_sm_hwinit@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _bfa_iocpf_sm_fail@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bfa_iocpf_sm_fail@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bfa_fsm_set_state
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bfa_ioc_pf_hwfailed
LBB0_6:
	mov	x0, x19
	bl	_bfa_ioc_hw_sem_get_cancel
Lloh5:
	adrp	x8, _bfa_iocpf_sm_disabling_sync@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bfa_iocpf_sm_disabling_sync@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bfa_fsm_set_state
LBB0_8:
	mov	x0, x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bfa_sm_fault
LBB0_9:
	mov	x0, x19
	bl	_bfa_nw_ioc_hw_sem_release
Lloh7:
	adrp	x8, _jiffies@GOTPAGE
Lloh8:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh9:
	ldr	x20, [x8]
Lloh10:
	adrp	x8, _BFA_IOC_HWSEM_TOV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BFA_IOC_HWSEM_TOV@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_bfa_iocpf_sm_hwinit,4,2        ; @bfa_iocpf_sm_hwinit
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_BFA_IOC_HWSEM_TOV,4,2          ; @BFA_IOC_HWSEM_TOV
	.comm	_bfa_iocpf_sm_fail,4,2          ; @bfa_iocpf_sm_fail
	.comm	_bfa_iocpf_sm_disabling_sync,4,2 ; @bfa_iocpf_sm_disabling_sync
	.no_dead_strip	_bfa_iocpf_sm_semwait
.subsections_via_symbols
