	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_get_mad_data_offset         ## -- Begin function ib_get_mad_data_offset
	.p2align	4, 0x90
_ib_get_mad_data_offset:                ## @ib_get_mad_data_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IB_MGMT_CLASS_SUBN_ADM@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_IB_MGMT_SA_HDR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_IB_MGMT_CLASS_DEVICE_MGMT@GOTPCREL(%rip), %rcx
	movq	_IB_MGMT_DEVICE_HDR@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rcx)
	je	LBB0_8
## %bb.3:
	movq	_IB_MGMT_CLASS_DEVICE_ADM@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_8
## %bb.4:
	movq	_IB_MGMT_CLASS_BIS@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_8
## %bb.5:
	movq	_IB_MGMT_CLASS_VENDOR_RANGE2_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_IB_MGMT_CLASS_VENDOR_RANGE2_END@GOTPCREL(%rip), %rsi
	movq	_IB_MGMT_MAD_HDR@GOTPCREL(%rip), %rdx
	movq	%rdx, %rax
	cmpq	%rdi, (%rsi)
	jl	LBB0_7
## %bb.6:
	movq	_IB_MGMT_VENDOR_HDR@GOTPCREL(%rip), %rax
LBB0_7:
	cmpq	%rdi, %rcx
	cmovgq	%rdx, %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_CLASS_SUBN_ADM,8,3     ## @IB_MGMT_CLASS_SUBN_ADM
	.comm	_IB_MGMT_SA_HDR,4,2             ## @IB_MGMT_SA_HDR
	.comm	_IB_MGMT_CLASS_DEVICE_MGMT,8,3  ## @IB_MGMT_CLASS_DEVICE_MGMT
	.comm	_IB_MGMT_CLASS_DEVICE_ADM,8,3   ## @IB_MGMT_CLASS_DEVICE_ADM
	.comm	_IB_MGMT_CLASS_BIS,8,3          ## @IB_MGMT_CLASS_BIS
	.comm	_IB_MGMT_DEVICE_HDR,4,2         ## @IB_MGMT_DEVICE_HDR
	.comm	_IB_MGMT_CLASS_VENDOR_RANGE2_START,8,3 ## @IB_MGMT_CLASS_VENDOR_RANGE2_START
	.comm	_IB_MGMT_CLASS_VENDOR_RANGE2_END,8,3 ## @IB_MGMT_CLASS_VENDOR_RANGE2_END
	.comm	_IB_MGMT_VENDOR_HDR,4,2         ## @IB_MGMT_VENDOR_HDR
	.comm	_IB_MGMT_MAD_HDR,4,2            ## @IB_MGMT_MAD_HDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_get_mad_data_offset         ; -- Begin function ib_get_mad_data_offset
	.p2align	2
_ib_get_mad_data_offset:                ; @ib_get_mad_data_offset
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IB_MGMT_CLASS_SUBN_ADM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MGMT_CLASS_SUBN_ADM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IB_MGMT_SA_HDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MGMT_SA_HDR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_2:
Lloh6:
	adrp	x8, _IB_MGMT_CLASS_DEVICE_MGMT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MGMT_CLASS_DEVICE_MGMT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _IB_MGMT_CLASS_DEVICE_ADM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_MGMT_CLASS_DEVICE_ADM@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _IB_MGMT_CLASS_BIS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IB_MGMT_CLASS_BIS@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	ccmp	x10, x0, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _IB_MGMT_DEVICE_HDR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_MGMT_DEVICE_HDR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh18:
	adrp	x8, _IB_MGMT_CLASS_VENDOR_RANGE2_START@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_MGMT_CLASS_VENDOR_RANGE2_START@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _IB_MGMT_CLASS_VENDOR_RANGE2_END@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IB_MGMT_CLASS_VENDOR_RANGE2_END@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x0
	ccmp	x8, x0, #0, ge
Lloh24:
	adrp	x8, _IB_MGMT_VENDOR_HDR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_MGMT_VENDOR_HDR@GOTPAGEOFF]
Lloh26:
	adrp	x9, _IB_MGMT_MAD_HDR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IB_MGMT_MAD_HDR@GOTPAGEOFF]
	csel	x8, x9, x8, gt
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_CLASS_SUBN_ADM,8,3     ; @IB_MGMT_CLASS_SUBN_ADM
	.comm	_IB_MGMT_SA_HDR,4,2             ; @IB_MGMT_SA_HDR
	.comm	_IB_MGMT_CLASS_DEVICE_MGMT,8,3  ; @IB_MGMT_CLASS_DEVICE_MGMT
	.comm	_IB_MGMT_CLASS_DEVICE_ADM,8,3   ; @IB_MGMT_CLASS_DEVICE_ADM
	.comm	_IB_MGMT_CLASS_BIS,8,3          ; @IB_MGMT_CLASS_BIS
	.comm	_IB_MGMT_DEVICE_HDR,4,2         ; @IB_MGMT_DEVICE_HDR
	.comm	_IB_MGMT_CLASS_VENDOR_RANGE2_START,8,3 ; @IB_MGMT_CLASS_VENDOR_RANGE2_START
	.comm	_IB_MGMT_CLASS_VENDOR_RANGE2_END,8,3 ; @IB_MGMT_CLASS_VENDOR_RANGE2_END
	.comm	_IB_MGMT_VENDOR_HDR,4,2         ; @IB_MGMT_VENDOR_HDR
	.comm	_IB_MGMT_MAD_HDR,4,2            ; @IB_MGMT_MAD_HDR
.subsections_via_symbols
